public final class AnnotationUtils extends Object
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)
T
- the type of the field to look for.a
- the object to search on for the typed field.type
- Copyright © 2010-2016 Oracle Corporation. All Rights Reserved.