Package org.objenesis.strategy
Class StdInstantiatorStrategy
java.lang.Object
org.objenesis.strategy.BaseInstantiatorStrategy
org.objenesis.strategy.StdInstantiatorStrategy
- All Implemented Interfaces:
InstantiatorStrategy
Guess the best instantiator for a given class. The instantiator will instantiate the class
without calling any constructor. Currently, the selection doesn't depend on the class. It relies
on the
- JVM version
- JVM vendor
- JVM vendor version
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> ObjectInstantiator<T>
newInstantiatorOf
(Class<T> type) Return anObjectInstantiator
allowing to create instance without any constructor being called.
-
Constructor Details
-
StdInstantiatorStrategy
public StdInstantiatorStrategy()
-
-
Method Details
-
newInstantiatorOf
Return anObjectInstantiator
allowing to create instance without any constructor being called.- Type Parameters:
T
- Type to instantiate- Parameters:
type
- Class to instantiate- Returns:
- The ObjectInstantiator for the class
-