public class ResourceAnnotationInjectionProvider extends NoInjectionAnnotationInjectionProvider
Constructor and Description |
---|
ResourceAnnotationInjectionProvider(Context context) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkFieldAnnotation(Field field,
Object instance) |
protected void |
checkMethodAnnotation(Method method,
Object instance) |
protected static String |
getFieldName(Method setter)
Returns the field name for the given Method.
|
protected static void |
lookupFieldResource(Context context,
Object instance,
Field field,
String name)
Inject resources in specified field.
|
protected static void |
lookupMethodResource(Context context,
Object instance,
Method method,
String name)
Inject resources in specified method.
|
protected void |
processAnnotations(Object instance)
Inject resources in specified instance.
|
inject, postConstruct, preDestroy
isAvailable
protected Context context
public ResourceAnnotationInjectionProvider(Context context)
protected void processAnnotations(Object instance) throws IllegalAccessException, InvocationTargetException, NamingException
processAnnotations
in class NoInjectionAnnotationInjectionProvider
IllegalAccessException
InvocationTargetException
NamingException
protected void checkMethodAnnotation(Method method, Object instance) throws NamingException, IllegalAccessException, InvocationTargetException
protected void checkFieldAnnotation(Field field, Object instance) throws NamingException, IllegalAccessException
protected static void lookupFieldResource(Context context, Object instance, Field field, String name) throws NamingException, IllegalAccessException
protected static void lookupMethodResource(Context context, Object instance, Method method, String name) throws NamingException, IllegalAccessException, InvocationTargetException
Copyright © 2020 The Apache Software Foundation. All rights reserved.