public class ReflectionUtil extends Object
| Constructor and Description | 
|---|
ReflectionUtil()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
assertHasDefaultConstructor(Class<?> type)  | 
static void | 
assertIsPublic(Class<?> type)  | 
static <T> IConstructor<T> | 
createCtor(Constructor<T> ctor)  | 
static <T,F> IField<T,F> | 
createField(Field field)  | 
static <T> IProperties<T> | 
createFieldProperties(Class<T> declaringClass,
                     Field[] fields)  | 
static <T> IGetterMethod<T> | 
createGetterMethod(ClassLoader classLoader,
                  Method method)  | 
static <T> IGetterMethod<T> | 
createGetterMethod(Method method)  | 
static Object | 
createInstanceWithOptionalDependencies(Class<?> factoryClass)  | 
static <T> IMethod<T> | 
createMethod(ClassLoader classLoader,
            Method method)  | 
static <T> IMethod<T> | 
createMethod(Method method)  | 
static <T> IMethod<T>[] | 
createMethods(ClassLoader classLoader,
             Method[] methods)  | 
static <T> IMethod<T>[] | 
createMethods(Method[] methods)  | 
static <T> IParamsConstructor<T> | 
createParamsCtor(Constructor<T> ctor)  | 
static <T> IProperties<T> | 
createProperties(SpaceTypeInfo typeInfo)  | 
static Object | 
createProxy(ClassLoader loader,
           Class<?>[] interfaces,
           ProxyInvocationHandler handler,
           boolean allowCache)  | 
static <T> ISetterMethod<T> | 
createSetterMethod(ClassLoader classLoader,
                  Method method)  | 
static <T> ISetterMethod<T> | 
createSetterMethod(Method method)  | 
static Set<Class> | 
getAllInterfacesForClassAsSet(Class clazz)  | 
static List<IField> | 
getCanonicalSortedFields(Class claz)
Return the canonical sorted fields of the specified class. 
 | 
static ClassLoader | 
getClassTargetLoader(Class memberClass)  | 
static <T> String[] | 
getConstructorParametersNames(Constructor<T> ctor)  | 
static <T> Constructor<T> | 
getDefaultConstructor(Class<T> type)  | 
static String | 
getDescriptor(Class c)  | 
static String | 
getInternalName(Class c)  | 
static Object | 
getInvocationHandler(Object obj)
A generic method retrieves the InvocationHandler of a Proxy or an AbstractProxy. 
 | 
static String | 
getMethodDescriptor(Method m)  | 
static boolean | 
isPojo(Object object)
Check if the Object is pojo 
 | 
static boolean | 
isProxyClass(Class<?> clz)  | 
static boolean | 
isPublic(Class<?> type)  | 
public static Object createInstanceWithOptionalDependencies(Class<?> factoryClass)
public static Object createProxy(ClassLoader loader, Class<?>[] interfaces, ProxyInvocationHandler handler, boolean allowCache)
public static <T> IConstructor<T> createCtor(Constructor<T> ctor)
public static <T> IParamsConstructor<T> createParamsCtor(Constructor<T> ctor)
public static <T> IMethod<T> createMethod(ClassLoader classLoader, Method method)
public static <T> IMethod<T>[] createMethods(ClassLoader classLoader, Method[] methods)
public static <T> IGetterMethod<T> createGetterMethod(Method method)
public static <T> IGetterMethod<T> createGetterMethod(ClassLoader classLoader, Method method)
public static <T> ISetterMethod<T> createSetterMethod(Method method)
public static <T> ISetterMethod<T> createSetterMethod(ClassLoader classLoader, Method method)
public static <T> IProperties<T> createFieldProperties(Class<T> declaringClass, Field[] fields)
public static <T> String[] getConstructorParametersNames(Constructor<T> ctor)
public static <T> IProperties<T> createProperties(SpaceTypeInfo typeInfo)
public static List<IField> getCanonicalSortedFields(Class claz)
isUsableField(IField)public static boolean isPublic(Class<?> type)
public static void assertIsPublic(Class<?> type)
public static <T> Constructor<T> getDefaultConstructor(Class<T> type)
public static void assertHasDefaultConstructor(Class<?> type)
public static boolean isPojo(Object object)
object - the objectpublic static boolean isProxyClass(Class<?> clz)
public static Object getInvocationHandler(Object obj)
public static ClassLoader getClassTargetLoader(Class memberClass)
Copyright © GigaSpaces.