public class LegacyAnnotationProcessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected javax.naming.Context |
context |
Constructor and Description |
---|
LegacyAnnotationProcessor(javax.naming.Context context) |
Modifier and Type | Method and Description |
---|---|
protected static void |
lookupFieldResource(javax.naming.Context context,
java.lang.Object instance,
java.lang.reflect.Field field,
java.lang.String name,
java.lang.Class<?> clazz)
Inject resources in specified field.
|
protected static void |
lookupMethodResource(javax.naming.Context context,
java.lang.Object instance,
java.lang.reflect.Method method,
java.lang.String name,
java.lang.Class<?> clazz)
Inject resources in specified method.
|
void |
postConstruct(java.lang.Object instance)
Call postConstruct method on the specified instance.
|
void |
preDestroy(java.lang.Object instance)
Call preDestroy method on the specified instance.
|
void |
processAnnotations(java.lang.Object instance)
Inject resources in specified instance.
|
public LegacyAnnotationProcessor(javax.naming.Context context)
public void postConstruct(java.lang.Object instance) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
instance
- java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public void preDestroy(java.lang.Object instance) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
instance
- java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public void processAnnotations(java.lang.Object instance) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, javax.naming.NamingException
instance
- java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
javax.naming.NamingException
protected static void lookupFieldResource(javax.naming.Context context, java.lang.Object instance, java.lang.reflect.Field field, java.lang.String name, java.lang.Class<?> clazz) throws javax.naming.NamingException, java.lang.IllegalAccessException
context
- instance
- field
- name
- clazz
- javax.naming.NamingException
java.lang.IllegalAccessException
protected static void lookupMethodResource(javax.naming.Context context, java.lang.Object instance, java.lang.reflect.Method method, java.lang.String name, java.lang.Class<?> clazz) throws javax.naming.NamingException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
context
- instance
- method
- name
- clazz
- javax.naming.NamingException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException