/** * Creates new Archivist */ public Archivist() { annotationErrorHandler = new DefaultErrorHandler(); }
/** * Creates a new ErrorHandler with the default logger */ public DefaultErrorHandler() { logger = AnnotationUtils.getLogger(); }
/** * Return a empty AnnotationProcessor with no annotation handlers registered * @return initialized AnnotationProcessor instance */ public static AnnotationProcessorImpl getDefaultAnnotationProcessor() { return new AnnotationProcessorImpl(); }
public void process(File directory, Object bundleDesc, ClassLoader classLoader) throws IOException { AnnotationUtils.getLogger().finer("dir is " + directory); AnnotationUtils.getLogger().finer("classLoader is " + classLoader); this.directory = directory; this.classLoader = classLoader; init(directory); }
/** * @return a default processed result */ protected HandlerProcessingResult getSuccessfulProcessedResult(List<Class<? extends Annotation>> annotationTypes) { HandlerProcessingResultImpl result = new HandlerProcessingResultImpl(); for(Class<? extends Annotation> annotation : annotationTypes){ result.addResult(annotation, ResultType.PROCESSED); } return result; }
public ComponentInfo getComponentInfo(Class componentImpl){ return new ComponentDefinition(componentImpl); }
public ComponentDefinition(Class clazz) { this.clazz = clazz; constructClassList(); initializeConstructors(); initializeFields(); initializeMethods(); }
public ProcessingContext createContext() { ProcessingContext ctx = new ProcessingContextImpl(this); ctx.setErrorHandler(new DefaultErrorHandler()); return ctx; }
/** * Process a set of classes from the parameter list rather than from the * processing context. This allow the annotation handlers to call be the * annotation processing tool when classes need to be processed in a * particular context rather than when they are picked up by the scanner. * * @param ctx the processing context * @param classes the list of classes to process * @return the processing result for such classes * @throws AnnotationProcessorException if handlers fail to process * an annotation */ public ProcessingResult process(ProcessingContext ctx, Class[] classes) throws AnnotationProcessorException { ProcessingResultImpl result = new ProcessingResultImpl(); for (Class c : classes) { result.add(process(ctx, c)); } return result; }
/** * Creates a new ErrorHandler with the default logger */ public DefaultErrorHandler() { logger = AnnotationUtils.getLogger(); }
public void process(File directory, Object bundleDesc, ClassLoader classLoader) throws IOException { AnnotationUtils.getLogger().finer("dir is " + directory); AnnotationUtils.getLogger().finer("classLoader is " + classLoader); this.directory = directory; this.classLoader = classLoader; init(directory); }
public ComponentInfo getComponentInfo(Class componentImpl){ return new ComponentDefinition(componentImpl); }
public ComponentDefinition(Class clazz) { this.clazz = clazz; constructClassList(); initializeConstructors(); initializeFields(); initializeMethods(); }
public ProcessingContext createContext() { ProcessingContext ctx = new ProcessingContextImpl(this); ctx.setErrorHandler(new DefaultErrorHandler()); return ctx; }
/** * Creates new Archivist */ public Archivist() { annotationErrorHandler = new DefaultErrorHandler(); }
/** * Return a empty AnnotationProcessor with no annotation handlers registered * @return initialized AnnotationProcessor instance */ public static AnnotationProcessorImpl getDefaultAnnotationProcessor() { return new AnnotationProcessorImpl(); }
/** Creates a new instance of AnnotationProcessorImpl */ public AnnotationProcessorImpl() { logger = AnnotationUtils.getLogger(); }
/** Creates a new instance of AnnotationProcessorImpl */ public AnnotationProcessorImpl() { logger = AnnotationUtils.getLogger(); }