Class ResourceAnnotationHandler
java.lang.Object
org.eclipse.jetty.ee8.annotations.AnnotationIntrospector.AbstractIntrospectableAnnotationHandler
org.eclipse.jetty.ee8.annotations.ResourceAnnotationHandler
- All Implemented Interfaces:
 AnnotationIntrospector.IntrospectableAnnotationHandler
public class ResourceAnnotationHandler
extends AnnotationIntrospector.AbstractIntrospectableAnnotationHandler
- 
Field Summary
FieldsFields inherited from class AnnotationIntrospector.AbstractIntrospectableAnnotationHandler
_context, _introspectAncestors - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidClass level Resource annotations declare a name in the environment that will be looked up at runtime.voidhandleClass(Class<?> clazz) voidhandleField(Class<?> clazz, Field field) voidhandleMethod(Class<?> clazz, Method method) Process a Resource annotation on a Method.booleanisEnvEntryType(Class<?> clazz) Check if the class is one of the basic java types permitted as env-entries.booleanCheck if the given Class is one that the specification allows to have a Resource annotation.Methods inherited from class AnnotationIntrospector.AbstractIntrospectableAnnotationHandler
getContext, handle 
- 
Field Details
- 
ENV_ENTRY_TYPES
 
 - 
 - 
Constructor Details
- 
ResourceAnnotationHandler
 
 - 
 - 
Method Details
- 
doHandle
Class level Resource annotations declare a name in the environment that will be looked up at runtime. They do not specify an injection.- Specified by:
 doHandlein classAnnotationIntrospector.AbstractIntrospectableAnnotationHandler
 - 
handleClass
 - 
handleField
 - 
handleMethod
 - 
supportsResourceInjection
Check if the given Class is one that the specification allows to have a Resource annotation.- Parameters:
 c- the class- Returns:
 - true if Resource annotation permitted, false otherwise
 
 - 
isEnvEntryType
Check if the class is one of the basic java types permitted as env-entries.- Parameters:
 clazz- the class to check- Returns:
 - true if class is permitted by the spec to be an env-entry value
 
 
 -