Class MultipartConfigHandler
- java.lang.Object
-
- com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
-
- org.glassfish.web.deployment.annotation.handlers.MultipartConfigHandler
-
- All Implemented Interfaces:
AnnotationHandler
@Service public class MultipartConfigHandler extends AbstractHandler
This handler is responsible in handling jakarta.servlet.annotation.MultipartConfig.- 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 MultipartConfigHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Annotation>[]
getTypeDependencies()
HandlerProcessingResult
processAnnotation(AnnotationInfo ainfo)
Process a particular annotation which type is the same as the one returned by @see getAnnotationType().protected HandlerProcessingResult
processAnnotation(AnnotationInfo ainfo, WebBundleContext webBundleContext)
Process Annotation with given WebBundleContext.protected HandlerProcessingResult
processAnnotation(AnnotationInfo ainfo, WebComponentContext[] webCompContexts)
Process Annotation with given WebCompContexts.-
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, WebComponentContext[] webCompContexts) throws AnnotationProcessorException
Process Annotation with given WebCompContexts.- Returns:
- HandlerProcessingResult
- Throws:
AnnotationProcessorException
-
processAnnotation
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, WebBundleContext webBundleContext) throws AnnotationProcessorException
Process Annotation with given WebBundleContext.- 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.
-
processAnnotation
public HandlerProcessingResult processAnnotation(AnnotationInfo ainfo) throws AnnotationProcessorException
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. This is a method in interface AnnotationHandler.- Parameters:
ainfo
- the annotation information- Throws:
AnnotationProcessorException
-
-