org.apache.tapestry5.internal.services
Interface Instantiator

All Known Implementing Classes:
AbstractInstantiator

public interface Instantiator

An object that can instantiate a component. This is used with transformed classes, in which the normal no-arguments constructor has been replaced with a constructor with arguments; the instantiator will retain the necessary arguments and pass them to the enhanced class' constructor.


Method Summary
 ComponentModel getModel()
          Returns the model that defines the behavior of the component.
 Component newInstance(InternalComponentResources resources)
          Instantiates and returns a new instance of the desired class.
 

Method Detail

newInstance

Component newInstance(InternalComponentResources resources)
Instantiates and returns a new instance of the desired class. Component classes are always modified so that they implement Component (and often, other interfaces as well).


getModel

ComponentModel getModel()
Returns the model that defines the behavior of the component.



Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.