public class SingleInstantiatorStrategy extends Object implements InstantiatorStrategy
Constructor and Description |
---|
SingleInstantiatorStrategy(Class instantiator)
Create a strategy that will return always the same instantiator type.
|
Modifier and Type | Method and Description |
---|---|
ObjectInstantiator |
newInstantiatorOf(Class type)
Create a dedicated instantiator for the given class
|
public SingleInstantiatorStrategy(Class instantiator)
instantiator
- the instantiator typepublic ObjectInstantiator newInstantiatorOf(Class type)
InstantiatorStrategy
newInstantiatorOf
in interface InstantiatorStrategy
type
- Class that will be instantiateCopyright © 2006-2013 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All Rights Reserved.