Package org.identityconnectors.common
Class ReflectionUtil
- java.lang.Object
 - 
- org.identityconnectors.common.ReflectionUtil
 
 
- 
public final class ReflectionUtil extends java.lang.Object 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMETHOD_UNKNOWN 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontainsInterface(java.lang.Class<?> target, java.lang.Class<?> clazz)Determine if the target class implements the provided interface.static java.util.Set<java.lang.Class<?>>getAllInterfaces(java.lang.Class<?> target)Builds aSetof interfaces from the target class.static <T> java.util.List<java.lang.Class<? extends T>>getInterfaces(java.lang.Class<?> target, java.lang.Class<T> type)Get all interfaces the extends the type provided.static java.lang.StringgetMethodName(int depth)Determine the method name for the calling class.static java.lang.StringgetPackage(java.lang.Class<?> clazz)Returns the package the class is associated with.static booleanoverridesEqualsAndHashcode(java.lang.Class<?> clazz)Returns true if the given class overrides equals and hashCode. 
 - 
 
- 
- 
Field Detail
- 
METHOD_UNKNOWN
public static final java.lang.String METHOD_UNKNOWN
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getAllInterfaces
public static java.util.Set<java.lang.Class<?>> getAllInterfaces(java.lang.Class<?> target)
Builds aSetof interfaces from the target class. 
- 
containsInterface
public static boolean containsInterface(java.lang.Class<?> target, java.lang.Class<?> clazz)Determine if the target class implements the provided interface.- Parameters:
 target- class to look through for a matching interface.clazz- interface class to look for.- Returns:
 - true if a matching interface is found otherwise false.
 
 
- 
getInterfaces
public static <T> java.util.List<java.lang.Class<? extends T>> getInterfaces(java.lang.Class<?> target, java.lang.Class<T> type)Get all interfaces the extends the type provided. 
- 
overridesEqualsAndHashcode
public static boolean overridesEqualsAndHashcode(java.lang.Class<?> clazz)
Returns true if the given class overrides equals and hashCode.- Parameters:
 clazz- The class to check.- Returns:
 - True if the given class overrides equals and hashCode
 
 
- 
getPackage
public static java.lang.String getPackage(java.lang.Class<?> clazz)
Returns the package the class is associated with.- Parameters:
 clazz- class to inspect for the package.- Returns:
 - package for the class provided.
 - Throws:
 java.lang.NullPointerException- if clazz isnull.
 
- 
getMethodName
public static java.lang.String getMethodName(int depth)
Determine the method name for the calling class. 
 - 
 
 -