public final class AnnotationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Field |
findField(Object a,
Class<T> type)
Deprecated.
Searches the object for a field annotated with the InjectForRequest
annotation of the provided type.
|
static <T> T |
findService(Object object,
Class<T> type)
Deprecated.
|
public static <T> T findService(Object object, Class<T> type)
T - the class of the object that is returned .object - the object containing the object to find.type - the Class of the type that is searched for.public static <T> Field findField(Object a, Class<T> type)
For instance @InjectForRequest Service service; is defined on the class as a field, then findField(object,Service.class); will return the Field service.
T - the type of the field to look for.a - the object to search on for the typed field.type - type to search forCopyright © 2010–2017. All rights reserved.