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)
T
- Type instantiatedclazz
- Class to instantiate<T> ObjectInstantiator<T> getInstantiatorOf(Class<T> clazz)
newInstance(Class)
.T
- Type to instantiateclazz
- Class to instantiateCopyright © 2006–2024 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All rights reserved.