public class LegacyAnnotationProcessor extends Object
| Constructor and Description |
|---|
LegacyAnnotationProcessor(Context context) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
lookupFieldResource(Context context,
Object instance,
Field field,
String name,
Class<?> clazz)
Inject resources in specified field.
|
protected static void |
lookupMethodResource(Context context,
Object instance,
Method method,
String name,
Class<?> clazz)
Inject resources in specified method.
|
void |
postConstruct(Object instance)
Call postConstruct method on the specified instance.
|
void |
preDestroy(Object instance)
Call preDestroy method on the specified instance.
|
void |
processAnnotations(Object instance)
Inject resources in specified instance.
|
protected Context context
public LegacyAnnotationProcessor(Context context)
public void postConstruct(Object instance) throws IllegalAccessException, InvocationTargetException
instance - IllegalAccessExceptionInvocationTargetExceptionpublic void preDestroy(Object instance) throws IllegalAccessException, InvocationTargetException
instance - IllegalAccessExceptionInvocationTargetExceptionpublic void processAnnotations(Object instance) throws IllegalAccessException, InvocationTargetException, NamingException
instance - IllegalAccessExceptionInvocationTargetExceptionNamingExceptionprotected static void lookupFieldResource(Context context, Object instance, Field field, String name, Class<?> clazz) throws NamingException, IllegalAccessException
context - instance - field - name - clazz - NamingExceptionIllegalAccessExceptionprotected static void lookupMethodResource(Context context, Object instance, Method method, String name, Class<?> clazz) throws NamingException, IllegalAccessException, InvocationTargetException
context - instance - method - name - clazz - NamingExceptionIllegalAccessExceptionInvocationTargetExceptionCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.