Class AbstractCommonAttributeHandler

  • All Implemented Interfaces:
    AnnotationHandler
    Direct Known Subclasses:
    DeclareRolesHandler, DenyAllHandler, PermitAllHandler, RolesAllowedHandler, RunAsHandler

    public abstract class AbstractCommonAttributeHandler
    extends AbstractHandler
    This is an abstract class encapsulate generic behaviour of annotation handler applying on Ejb and WebComponent Class. It will get the corresponding EjbDescriptors or WebComponentDescriptor associated to the annotation on the given Class and then pass it to underlying processAnnotation method. Concrete subclass handlers need to implement the following: public Class<? extends Annotation> getAnnotationType(); protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, EjbContext[] ejbContexts) throws AnnotationProcessorException; protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, WebComponentContext[] webCompContexts) throws AnnotationProcessorException; protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, WebBundleContext webBundleContext) throws AnnotationProcessorException; It may also need to override the following if other annotations need to be processed prior to given annotation: public Class<? extends Annotation>[] getTypeDependencies();
    Author:
    Shing Wai Chan