Class ClassInstantiatorImpl<T>
java.lang.Object
org.apache.tapestry5.internal.plastic.ClassInstantiatorImpl<T>
- All Implemented Interfaces:
ClassInstantiator<T>
,InstanceContext
public class ClassInstantiatorImpl<T>
extends Object
implements ClassInstantiator<T>, InstanceContext
-
Method Summary
Modifier and TypeMethodDescription<V> V
Gets an instance context value which is identified by type.Returns the type of the instance created with this context.Creates and returns a new instance of the transformed class.toString()
<V> ClassInstantiator<T>
Returns a new instantiator that adds the indicated value to the instance'sInstanceContext
.
-
Method Details
-
with
Description copied from interface:ClassInstantiator
Returns a new instantiator that adds the indicated value to the instance'sInstanceContext
.- Specified by:
with
in interfaceClassInstantiator<T>
- Parameters:
valueType
- defines the type of value, and acts as a key to retrieve the valueinstanceContextValue
- the non-null value stored
-
get
Description copied from interface:InstanceContext
Gets an instance context value which is identified by type.- Specified by:
get
in interfaceInstanceContext
-
newInstance
Description copied from interface:ClassInstantiator
Creates and returns a new instance of the transformed class.- Specified by:
newInstance
in interfaceClassInstantiator<T>
-
getInstanceType
Description copied from interface:InstanceContext
Returns the type of the instance created with this context. This is most often of interest to implementations ofComputedValue
.- Specified by:
getInstanceType
in interfaceInstanceContext
-
toString
-