public class ReflectionUtil extends Object
Constructor and Description |
---|
ReflectionUtil() |
public static Object createInstanceWithOptionalDependencies(Class<?> factoryClass)
public static Object createProxy(ClassLoader loader, Class<?>[] interfaces, ProxyInvocationHandler handler, boolean allowCache)
public static <T> IConstructor<T> createCtor(Class<T> type)
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 isProxyClass(Class<?> clz)
public static Object getInvocationHandler(Object obj)
public static ClassLoader getClassTargetLoader(Class memberClass)
Copyright © GigaSpaces.