Package org.apache.tapestry5.plastic
Interface PlasticClassTransformation<T>
- Type Parameters:
T
- the type being generated.
- All Known Subinterfaces:
InternalPlasticClassTransformation
- All Known Implementing Classes:
PlasticClassImpl
public interface PlasticClassTransformation<T>
A wrapper around a
PlasticClass
that allows the class to be converted into a concrete class, once all
transformations are complete.-
Method Summary
Modifier and TypeMethodDescriptionTerminates the class transformation process, finishes any final bookkeeping, and returns an object used to instantiate the transformed class.Returns the PlasticClass being transformed.
-
Method Details
-
getPlasticClass
Returns the PlasticClass being transformed.- Returns:
- PlasticClass instance
-
createInstantiator
Terminates the class transformation process, finishes any final bookkeeping, and returns an object used to instantiate the transformed class. Once this method is invoked, no other methods of thePlasticClass
(or related objects) can be invoked. The returned ClassInstantiator has an emptyInstanceContext
map. UseClassInstantiator.with(Class, Object)
to create a new ClassInstantiator with new InstanceContext entries.
-