org.apache.tapestry5.plastic
Interface PlasticClassTransformation<T>

Type Parameters:
T -
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
 ClassInstantiator<T> createInstantiator()
          Terminates the class transformation process, finishes any final bookkeeping, and returns an object used to instantiate the transformed class.
 PlasticClass getPlasticClass()
          Returns the PlasticClass being transformed.
 

Method Detail

getPlasticClass

PlasticClass getPlasticClass()
Returns the PlasticClass being transformed.

Returns:
PlasticClass instance

createInstantiator

ClassInstantiator<T> 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 the PlasticClass (or related objects) can be invoked.

The returned ClassInstantiator has an empty InstanceContext map. Use ClassInstantiator.with(Class, Object) to create a new ClassInstantiator with new InstanceContext entries.



Copyright © 2003-2012 The Apache Software Foundation.