Top Description Constructors Methods
org.objenesis.strategy

public Class StdInstantiatorStrategy

extends BaseInstantiatorStrategy
Class Inheritance
Imports
org.objenesis.instantiator.ObjectInstantiator, org.objenesis.instantiator.android.Android10Instantiator, .Android17Instantiator, .Android18Instantiator, org.objenesis.instantiator.basic.AccessibleInstantiator, .ObjectInputStreamInstantiator, org.objenesis.instantiator.gcj.GCJInstantiator, org.objenesis.instantiator.perc.PercInstantiator, org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator, .UnsafeFactoryInstantiator, java.io.Serializable

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 However, instantiators are stateful and so dedicated to their class.
Author
Henri Tremblay
See Also
ObjectInstantiator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <T> ObjectInstantiator<T>

Returns:

The ObjectInstantiator for the class
newInstantiatorOf
(Class<T>
Class to instantiate
type
)

Implements org.objenesis.strategy.InstantiatorStrategy.newInstantiatorOf.

Return an ObjectInstantiator allowing to create instance without any constructor being called.

Constructor Detail

StdInstantiatorStrategyback to summary
public StdInstantiatorStrategy()

Method Detail

newInstantiatorOfback to summary
public <T> ObjectInstantiator<T> newInstantiatorOf(Class<T> type)

Implements org.objenesis.strategy.InstantiatorStrategy.newInstantiatorOf.

Return an ObjectInstantiator allowing to create instance without any constructor being called.

Parameters
<T>

Doc from org.objenesis.strategy.InstantiatorStrategy.newInstantiatorOf. Type to instantiate

type:Class<T>

Class to instantiate

Returns:ObjectInstantiator<T>

The ObjectInstantiator for the class