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
public void preDestroy(Object instance) throws IllegalAccessException, InvocationTargetException
public void processAnnotations(Object instance) throws IllegalAccessException, InvocationTargetException, NamingException
protected static void lookupFieldResource(Context context, Object instance, Field field, String name, Class<?> clazz) throws NamingException, IllegalAccessException
protected static void lookupMethodResource(Context context, Object instance, Method method, String name, Class<?> clazz) throws NamingException, IllegalAccessException, InvocationTargetException
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.