|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.plastic.ClassInstantiatorImpl<T>
public class ClassInstantiatorImpl<T>
Method Summary | ||
---|---|---|
|
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()
|
|
|
with(Class<V> valueType,
V instanceContextValue)
Returns a new instantiator that adds the indicated value to the instance's InstanceContext . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public <V> ClassInstantiator<T> with(Class<V> valueType, V instanceContextValue)
ClassInstantiator
InstanceContext
.
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)
InstanceContext
get
in interface InstanceContext
public T newInstance()
ClassInstantiator
newInstance
in interface ClassInstantiator<T>
public Class<T> getInstanceType()
InstanceContext
ComputedValue
.
getInstanceType
in interface InstanceContext
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |