Package org.hightides.annotations.processor

Examples of org.hightides.annotations.processor.Processor


        CodeFactory cf = CodeFactory.getFactory(language);
        for (Class annotation : annotationList) {
            _log.info("============================");
            _log.info("Processing " + annotation.getName() + "...");
            // retrieve the processor for this annotation
            Processor p = cf.getProcessor(annotation);
            // get all classes that are marked with this annotation
            Set<String> serviceClasses = db.getAnnotationIndex().get(
                    annotation.getName());
            if (serviceClasses == null || serviceClasses.size() == 0) {
                _log.info("    No classes found.");
                continue;
            }
            for (String className : serviceClasses) {
                _log.info("    Found " + className);
                try {
                    Map<String, Object> params = populateParams(annotation
                            .getSimpleName(), className);
                    params.put("annotation", annotation.getName());
                    p.execute(params);
                } catch (Exception e) {
                    _log.error("Failed to process class [" + className
                            + "] for annotation [" + annotation + "]", e);
                }
            }
View Full Code Here

TOP

Related Classes of org.hightides.annotations.processor.Processor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.