1 23 24 package com.sun.enterprise.deployment.annotation; 25 26 import java.lang.annotation.Annotation ; 27 import java.lang.annotation.ElementType ; 28 import java.lang.reflect.AnnotatedElement ; 29 import java.util.logging.Level ; 30 31 63 public interface AnnotationProcessor { 64 65 70 public ProcessingContext createContext(); 71 72 78 public ProcessingResult process(ProcessingContext ctx) throws AnnotationProcessorException; 79 80 92 public ProcessingResult process(ProcessingContext ctx, Class [] classes) 93 throws AnnotationProcessorException; 94 95 105 public void pushAnnotationHandler(AnnotationHandler handler); 106 107 111 public AnnotationHandler getAnnotationHandler(Class <? extends Annotation > type); 112 113 117 public void popAnnotationHandler(Class <? extends Annotation > type); 118 119 124 public AnnotatedElement getLastAnnotatedElement(ElementType type); 125 126 129 public void log(Level level, AnnotationInfo locator, String localizedMessage); 130 } 131 | Popular Tags |