Class ConnectorAnnotationHandler
- java.lang.Object
-
- com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
-
- com.sun.enterprise.connectors.deployment.annotation.handlers.ConnectorAnnotationHandler
-
- All Implemented Interfaces:
AnnotationHandler
@Service public class ConnectorAnnotationHandler extends AbstractHandler
- Author:
- Jagadish Ramu
-
-
Field Summary
Fields Modifier and Type Field Description protected static LocalStringManagerImpl
localStrings
-
Fields inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
ejbProvider, logger
-
Fields inherited from interface org.glassfish.apf.AnnotationHandler
ANNOTATION_HANDLER_METADATA
-
-
Constructor Summary
Constructors Constructor Description ConnectorAnnotationHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
convertStringArrayToStringBuilder(String[] stringArray)
static OutboundResourceAdapter
getOutbound(ConnectorDescriptor desc)
protected HandlerProcessingResult
getSuccessfulProcessedResult(List<Class<? extends Annotation>> annotationTypes)
Class<? extends Annotation>[]
getTypeDependencies()
static boolean
isResourceAdapterClass(Class claz)
HandlerProcessingResult
processAnnotation(AnnotationInfo element)
Process a particular annotation which type is the same as the one returned by @see getAnnotationType().static void
processDescriptor(Class annotatedClass, jakarta.resource.spi.Connector connector, ConnectorDescriptor desc)
-
Methods inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
getAnnotationType, getConnectorAnnotationTypes, getDefaultFailedResult, getDefaultProcessedResult, getEjbAndWebAnnotationTypes, getEjbAnnotationTypes, getInjectionMethodPropertyName, getInvalidAnnotatedElementHandlerResult, getOverallProcessingResult, getWebAnnotationTypes, log, validateInjectionMethod
-
-
-
-
Field Detail
-
localStrings
protected static final LocalStringManagerImpl localStrings
-
-
Method Detail
-
processAnnotation
public HandlerProcessingResult processAnnotation(AnnotationInfo element) throws AnnotationProcessorException
Description copied from interface:AnnotationHandler
Process a particular annotation which type is the same as the one returned by @see getAnnotationType(). All information pertinent to the annotation and its context is encapsulated in the passed AnnotationInfo instance.- Parameters:
element
- the annotation information- Throws:
AnnotationProcessorException
-
processDescriptor
public static void processDescriptor(Class annotatedClass, jakarta.resource.spi.Connector connector, ConnectorDescriptor desc)
-
isResourceAdapterClass
public static boolean isResourceAdapterClass(Class claz)
-
convertStringArrayToStringBuilder
public static String convertStringArrayToStringBuilder(String[] stringArray)
-
getSuccessfulProcessedResult
protected HandlerProcessingResult getSuccessfulProcessedResult(List<Class<? extends Annotation>> annotationTypes)
- Returns:
- a default processed result
-
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.
-
getOutbound
public static OutboundResourceAdapter getOutbound(ConnectorDescriptor desc)
-
-