Class DeclareRolesHandler
- java.lang.Object
-
- com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
-
- com.sun.enterprise.deployment.annotation.handlers.AbstractCommonAttributeHandler
-
- com.sun.enterprise.deployment.annotation.handlers.DeclareRolesHandler
-
- All Implemented Interfaces:
AnnotationHandler
@Service public class DeclareRolesHandler extends AbstractCommonAttributeHandler
This handler is responsible for handling the jakarta.annotation.security.DeclareRoles.- Author:
- Shing Wai Chan
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
ejbProvider, localStrings, logger
-
Fields inherited from interface org.glassfish.apf.AnnotationHandler
ANNOTATION_HANDLER_METADATA
-
-
Constructor Summary
Constructors Constructor Description DeclareRolesHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Annotation>[]
getTypeDependencies()
protected HandlerProcessingResult
processAnnotation(AnnotationInfo ainfo, EjbContext[] ejbContexts)
Process Annotation with given EjbContexts.protected HandlerProcessingResult
processAnnotation(AnnotationInfo ainfo, WebBundleContext webBundleContext)
Process Annotation with given WebBundleContext.protected HandlerProcessingResult
processAnnotation(AnnotationInfo ainfo, WebComponentContext[] webCompContexts)
Process Annotation with given WebCompContexts.protected boolean
supportTypeInheritance()
This indicates whether the annotation type should be processed for type level in super-class.-
Methods inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractCommonAttributeHandler
processAnnotation
-
Methods inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
getAnnotationType, getConnectorAnnotationTypes, getDefaultFailedResult, getDefaultProcessedResult, getEjbAndWebAnnotationTypes, getEjbAnnotationTypes, getInjectionMethodPropertyName, getInvalidAnnotatedElementHandlerResult, getOverallProcessingResult, getWebAnnotationTypes, log, validateInjectionMethod
-
-
-
-
Method Detail
-
processAnnotation
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, EjbContext[] ejbContexts) throws AnnotationProcessorException
Description copied from class:AbstractCommonAttributeHandler
Process Annotation with given EjbContexts.- Specified by:
processAnnotation
in classAbstractCommonAttributeHandler
- Returns:
- HandlerProcessingResult
- Throws:
AnnotationProcessorException
-
processAnnotation
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, WebComponentContext[] webCompContexts) throws AnnotationProcessorException
Description copied from class:AbstractCommonAttributeHandler
Process Annotation with given WebCompContexts.- Specified by:
processAnnotation
in classAbstractCommonAttributeHandler
- Returns:
- HandlerProcessingResult
- Throws:
AnnotationProcessorException
-
processAnnotation
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, WebBundleContext webBundleContext) throws AnnotationProcessorException
Description copied from class:AbstractCommonAttributeHandler
Process Annotation with given WebBundleContext.- Specified by:
processAnnotation
in classAbstractCommonAttributeHandler
- Returns:
- HandlerProcessingResult
- Throws:
AnnotationProcessorException
-
getTypeDependencies
public Class<? extends Annotation>[] getTypeDependencies()
- Specified by:
getTypeDependencies
in interfaceAnnotationHandler
- Overrides:
getTypeDependencies
in classAbstractHandler
- Returns:
- an array of annotation types this annotation handler would require to be processed (if present) before it processes it's own annotation type.
-
supportTypeInheritance
protected boolean supportTypeInheritance()
Description copied from class:AbstractCommonAttributeHandler
This indicates whether the annotation type should be processed for type level in super-class.- Overrides:
supportTypeInheritance
in classAbstractCommonAttributeHandler
-
-