Package org.objenesis.instantiator.sun
Class SunReflectionFactoryHelper
- java.lang.Object
-
- org.objenesis.instantiator.sun.SunReflectionFactoryHelper
-
class SunReflectionFactoryHelper extends java.lang.Object
Helper methods providing access toReflectionFactory
via reflection, for use by theObjectInstantiator
s that use it.
-
-
Constructor Summary
Constructors Constructor Description SunReflectionFactoryHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.Object
createReflectionFactory(java.lang.Class<?> reflectionFactoryClass)
private static java.lang.reflect.Method
getNewConstructorForSerializationMethod(java.lang.Class<?> reflectionFactoryClass)
private static java.lang.Class<?>
getReflectionFactoryClass()
static <T> java.lang.reflect.Constructor<T>
newConstructorForSerialization(java.lang.Class<T> type, java.lang.reflect.Constructor<?> constructor)
-
-
-
Method Detail
-
newConstructorForSerialization
public static <T> java.lang.reflect.Constructor<T> newConstructorForSerialization(java.lang.Class<T> type, java.lang.reflect.Constructor<?> constructor)
-
getReflectionFactoryClass
private static java.lang.Class<?> getReflectionFactoryClass()
-
createReflectionFactory
private static java.lang.Object createReflectionFactory(java.lang.Class<?> reflectionFactoryClass)
-
getNewConstructorForSerializationMethod
private static java.lang.reflect.Method getNewConstructorForSerializationMethod(java.lang.Class<?> reflectionFactoryClass)
-
-