public interface Objenesis
| Modifier and Type | Method and Description |
|---|---|
<T> ObjectInstantiator<T> |
getInstantiatorOf(java.lang.Class<T> clazz)
Will pick the best instantiator for the provided class.
|
<T> T |
newInstance(java.lang.Class<T> clazz)
Will create a new object without any constructor being called
|
<T> T newInstance(java.lang.Class<T> clazz)
T - Type instantiatedclazz - Class to instantiate<T> ObjectInstantiator<T> getInstantiatorOf(java.lang.Class<T> clazz)
newInstance(Class).T - Type to instantiateclazz - Class to instantiate