public class ClassInstantiatorImpl<T> extends Object implements ClassInstantiator<T>, InstanceContext
| Modifier and Type | Method and Description | 
|---|---|
| <V> V | get(Class<V> valueType)Gets an instance context value which is identified by type. | 
| Class<T> | getInstanceType()Returns the type of the instance created with this context. | 
| T | newInstance()Creates and returns a new instance of the transformed class. | 
| String | toString() | 
| <V> ClassInstantiator<T> | with(Class<V> valueType,
        V instanceContextValue)Returns a new instantiator that adds the indicated value to the
 instance's  InstanceContext. | 
public <V> ClassInstantiator<T> with(Class<V> valueType, V instanceContextValue)
ClassInstantiatorInstanceContext.with in interface ClassInstantiator<T>valueType - defines the type of value, and acts as a key to retrieve the valueinstanceContextValue - the non-null value storedpublic <V> V get(Class<V> valueType)
InstanceContextget in interface InstanceContextpublic T newInstance()
ClassInstantiatornewInstance in interface ClassInstantiator<T>public Class<T> getInstanceType()
InstanceContextComputedValue.getInstanceType in interface InstanceContext${project.version} - Copyright © 2003-2015 The Apache Software Foundation.