Package org.apache.catalina.startup
Class WebAnnotationSet
java.lang.Object
org.apache.catalina.startup.WebAnnotationSet
AnnotationSet for processing the annotations of the web application classes
(
/WEB-INF/classes
and /WEB-INF/lib
).-
Field Summary
Modifier and TypeFieldDescriptionprotected static final StringManager
The string resources for this package. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
addResource
(Context context, Resource annotation) Process a Resource annotation to set up a Resource.protected static void
addResource
(Context context, Resource annotation, String defaultName, Class<?> defaultType) static void
loadApplicationAnnotations
(Context context) Process the annotations on a context.protected static void
loadApplicationFilterAnnotations
(Context context) Process the annotations for the filters.protected static void
Process the annotations for the listeners.protected static void
loadApplicationServletAnnotations
(Context context) Process the annotations for the servlets.protected static void
loadClassAnnotation
(Context context, Class<?> clazz) Process the annotations on a context for a given className.protected static void
loadFieldsAnnotation
(Context context, Class<?> clazz) protected static void
loadMethodsAnnotation
(Context context, Class<?> clazz)
-
Field Details
-
sm
The string resources for this package.
-
-
Constructor Details
-
WebAnnotationSet
public WebAnnotationSet()
-
-
Method Details
-
loadApplicationAnnotations
Process the annotations on a context.- Parameters:
context
- The context which will have its annotations processed
-
loadApplicationListenerAnnotations
Process the annotations for the listeners.- Parameters:
context
- The context which will have its annotations processed
-
loadApplicationFilterAnnotations
Process the annotations for the filters.- Parameters:
context
- The context which will have its annotations processed
-
loadApplicationServletAnnotations
Process the annotations for the servlets.- Parameters:
context
- The context which will have its annotations processed
-
loadClassAnnotation
Process the annotations on a context for a given className.- Parameters:
context
- The context which will have its annotations processedclazz
- The class to examine for Servlet annotations
-
loadFieldsAnnotation
-
loadMethodsAnnotation
-
addResource
Process a Resource annotation to set up a Resource. Ref JSR 250, equivalent to the resource-ref, message-destination-ref, env-ref, resource-env-ref or service-ref element in the deployment descriptor.- Parameters:
context
- The context which will have its annotations processedannotation
- The annotation that was found
-
addResource
-