org.apache.tapestry.services
Interface ComponentConstructor

All Known Implementing Classes:
ComponentConstructorImpl

public interface ComponentConstructor

Starting with 4.0, copmonents do not always have a zero-args constructor; the enhanced subclass may take some parameters used to initialize instance variables. This interface represents a wrapper around a constructor and an array of parameters that can be used to stamp out new instances of a component.

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
 Class getComponentClass()
          Returns the class actually instantiated (which may be an enhanced subclass).
 Object newInstance()
          Requests that a new instance of the component.
 

Method Detail

newInstance

Object newInstance()
Requests that a new instance of the component.


getComponentClass

Class getComponentClass()
Returns the class actually instantiated (which may be an enhanced subclass).



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