Package org.apache.tapestry5.plastic
Interface InstanceContext
- All Known Implementing Classes:
ClassInstantiatorImpl
public interface InstanceContext
Defines per-instance context values for a transformed PlasticClass.
-
Method Summary
Modifier and TypeMethodDescription<T> T
Gets an instance context value which is identified by type.Class<?>
Returns the type of the instance created with this context.
-
Method Details
-
getInstanceType
Class<?> getInstanceType()Returns the type of the instance created with this context. This is most often of interest to implementations ofComputedValue
. -
get
Gets an instance context value which is identified by type.- Throws:
IllegalArgumentException
- if no such value is available in the context.
-