AnnotationIntrospector.IntrospectableAnnotationHandlerpublic class ResourceAnnotationHandler extends AnnotationIntrospector.AbstractIntrospectableAnnotationHandler
| Modifier and Type | Field | Description |
|---|---|---|
protected org.eclipse.jetty.webapp.WebAppContext |
_context |
|
protected static java.util.List<java.lang.Class<?>> |
ENV_ENTRY_TYPES |
| Constructor | Description |
|---|---|
ResourceAnnotationHandler(org.eclipse.jetty.webapp.WebAppContext wac) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
doHandle(java.lang.Class<?> clazz) |
Class level Resource annotations declare a name in the
environment that will be looked up at runtime.
|
void |
handleClass(java.lang.Class<?> clazz) |
|
void |
handleField(java.lang.Class<?> clazz,
java.lang.reflect.Field field) |
|
void |
handleMethod(java.lang.Class<?> clazz,
java.lang.reflect.Method method) |
Process a Resource annotation on a Method.
|
boolean |
isEnvEntryType(java.lang.Class<?> clazz) |
Check if the class is one of the basic java types permitted as
env-entries.
|
boolean |
supportsResourceInjection(java.lang.Class<?> c) |
Check if the given Class is one that the specification allows to have a Resource annotation.
|
handleprotected static final java.util.List<java.lang.Class<?>> ENV_ENTRY_TYPES
protected org.eclipse.jetty.webapp.WebAppContext _context
public ResourceAnnotationHandler(org.eclipse.jetty.webapp.WebAppContext wac)
public void doHandle(java.lang.Class<?> clazz)
doHandle in class AnnotationIntrospector.AbstractIntrospectableAnnotationHandlerpublic void handleClass(java.lang.Class<?> clazz)
public void handleField(java.lang.Class<?> clazz,
java.lang.reflect.Field field)
public void handleMethod(java.lang.Class<?> clazz,
java.lang.reflect.Method method)
This will generate a JNDI entry, and an Injection to be processed when an instance of the class is created.
clazz - the class to processmethod - the method to processpublic boolean supportsResourceInjection(java.lang.Class<?> c)
c - the classpublic boolean isEnvEntryType(java.lang.Class<?> clazz)
clazz - the class to checkCopyright © 1995–2018 Webtide. All rights reserved.