Class ReflectionUtil
java.lang.Object
com.gigaspaces.internal.reflection.ReflectionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertHasDefaultConstructor(Class<?> type) static voidassertIsPublic(Class<?> type) static <T> IConstructor<T>createCtor(Class<T> 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 ObjectcreateInstanceWithOptionalDependencies(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 ObjectcreateProxy(ClassLoader loader, Class<?>[] interfaces, ProxyInvocationHandler handler, boolean allowCache) static <T> ISetterMethod<T>createSetterMethod(ClassLoader classLoader, Method method) static <T> ISetterMethod<T>createSetterMethod(Method method) Return the canonical sorted fields of the specified class.static ClassLoadergetClassTargetLoader(Class memberClass) static <T> String[]getConstructorParametersNames(Constructor<T> ctor) static <T> Constructor<T>getDefaultConstructor(Class<T> type) static Stringstatic Stringstatic ObjectA generic method retrieves the InvocationHandler of a Proxy or an AbstractProxy.static Stringstatic booleanisProxyClass(Class<?> clz) static boolean
-
Constructor Details
-
ReflectionUtil
public ReflectionUtil()
-
-
Method Details
-
createInstanceWithOptionalDependencies
-
createProxy
public static Object createProxy(ClassLoader loader, Class<?>[] interfaces, ProxyInvocationHandler handler, boolean allowCache) -
createCtor
-
createCtor
-
createParamsCtor
-
createMethod
-
createMethod
-
createMethods
-
createMethods
-
createGetterMethod
-
createGetterMethod
-
createSetterMethod
-
createSetterMethod
-
createField
-
createFieldProperties
-
getConstructorParametersNames
-
createProperties
-
getCanonicalSortedFields
Return the canonical sorted fields of the specified class. We define the order of canonical sorted fields of class C as follows: If C is "java.lang.Object", it is the regular sorting of C. Otherwise, let C1 be the superclass of C, then the canonical order is the canonical order of C1 follow by the regular order of C. The definition is well defined and independent of JVM/Platform. Moreover, it has the quality that fields of superclasses appear before fields of subclasses. The legal fields are according toisUsableField(IField) -
isPublic
-
assertIsPublic
-
getDefaultConstructor
-
assertHasDefaultConstructor
-
isProxyClass
-
getInvocationHandler
A generic method retrieves the InvocationHandler of a Proxy or an AbstractProxy. -
getAllInterfacesForClassAsSet
-
getInternalName
-
getDescriptor
-
getClassTargetLoader
-
getMethodDescriptor
-