T
- type of the class instantiatedpublic abstract class DelegatingToExoticInstantiator<T> extends java.lang.Object implements ObjectInstantiator<T>
Modifier and Type | Field and Description |
---|---|
private ObjectInstantiator<T> |
wrapped |
Modifier | Constructor and Description |
---|---|
protected |
DelegatingToExoticInstantiator(java.lang.String className,
java.lang.Class<T> type) |
Modifier and Type | Method and Description |
---|---|
private ObjectInstantiator<T> |
instantiator(java.lang.String className,
java.lang.Class<T> type,
java.lang.reflect.Constructor<ObjectInstantiator<T>> constructor) |
private java.lang.Class<ObjectInstantiator<T>> |
instantiatorClass(java.lang.String className) |
private java.lang.reflect.Constructor<ObjectInstantiator<T>> |
instantiatorConstructor(java.lang.String className,
java.lang.Class<ObjectInstantiator<T>> clazz) |
T |
newInstance()
Returns a new instance of an object.
|
private final ObjectInstantiator<T> wrapped
protected DelegatingToExoticInstantiator(java.lang.String className, java.lang.Class<T> type)
private ObjectInstantiator<T> instantiator(java.lang.String className, java.lang.Class<T> type, java.lang.reflect.Constructor<ObjectInstantiator<T>> constructor)
private java.lang.Class<ObjectInstantiator<T>> instantiatorClass(java.lang.String className)
private java.lang.reflect.Constructor<ObjectInstantiator<T>> instantiatorConstructor(java.lang.String className, java.lang.Class<ObjectInstantiator<T>> clazz)
public T newInstance()
ObjectInstantiator
newInstance
in interface ObjectInstantiator<T>