Top Description Methods
org.springframework.objenesis.strategy

public Interface InstantiatorStrategy

Known Direct Implementers
org.springframework.objenesis.strategy.SingleInstantiatorStrategy, org.springframework.objenesis.strategy.BaseInstantiatorStrategy
Imports
org.springframework.objenesis.instantiator.ObjectInstantiator

Defines a strategy to determine the best instantiator for a class.
Author
Henri Tremblay

Method Summary

Modifier and TypeMethod and Description
public <
Type to instantiate
T
>
ObjectInstantiator<T>

Returns:

Dedicated instantiator
newInstantiatorOf
(Class<T>
Class that will be instantiated
type
)

Create a dedicated instantiator for the given class

Method Detail

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

Create a dedicated instantiator for the given class

Parameters
<T>
Type to instantiate
type:Class<T>

Class that will be instantiated

Returns:ObjectInstantiator<T>

Dedicated instantiator