public interface Objenesis
Modifier and Type | Method and Description |
---|---|
<T> ObjectInstantiator<T> |
getInstantiatorOf(Class<T> clazz)
Will pick the best instantiator for the provided class.
|
<T> T |
newInstance(Class<T> clazz)
Will create a new object without any constructor being called
|
<T> T newInstance(Class<T> clazz)
clazz
- Class to instantiate<T> ObjectInstantiator<T> getInstantiatorOf(Class<T> clazz)
newInstance(Class)
.clazz
- Class to instantiateCopyright © 2006-2013 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All Rights Reserved.