| Modifier and Type | Field and Description |
|---|---|
| private final Constructor |
| Access | Constructor and Description |
|---|---|
| public < the type we want to instantiate T extends ObjectInstantiator | SingleInstantiatorStrategy(Class<T>
the instantiator type instantiator)Create a strategy that will return always the same instantiator type. |
| Modifier and Type | Method and Description |
|---|---|
| public < the type we want to instantiate T> ObjectInstantiator | Returns: The ObjectInstantiator for the classClass to instantiate type)Implements org. |
| constructor | back to summary |
|---|---|
| private final Constructor<?> constructor | |
| SingleInstantiatorStrategy | back to summary |
|---|---|
| public <T extends ObjectInstantiator Create a strategy that will return always the same instantiator type. We assume this instantiator has one constructor taking the class to instantiate in parameter.
| |
| newInstantiatorOf | back to summary |
|---|---|
| public <T> ObjectInstantiator Implements org. Return an instantiator for the wanted type and of the one and only type of instantiator returned by this class.
| |