org.apache.tapestry.enhance
Class ComponentConstructorImpl

java.lang.Object
  extended byorg.apache.tapestry.enhance.ComponentConstructorImpl
All Implemented Interfaces:
ComponentConstructor

public class ComponentConstructorImpl
extends java.lang.Object
implements ComponentConstructor

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
ComponentConstructorImpl(java.lang.reflect.Constructor constructor, java.lang.Object[] parameters, java.lang.String classFabString, org.apache.hivemind.Location location)
          News instance of this class.
 
Method Summary
 java.lang.Class getComponentClass()
          Returns the class actually instantiated (which may be an enhanced subclass).
 java.lang.Object newInstance()
          Requests that a new instance of the component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentConstructorImpl

public ComponentConstructorImpl(java.lang.reflect.Constructor constructor,
                                java.lang.Object[] parameters,
                                java.lang.String classFabString,
                                org.apache.hivemind.Location location)
News instance of this class.

Parameters:
constructor - the constructor method to invoke
parameters - the parameters to pass to the constructor. These are retained, not copied.
classFabString - a string representing the generated class information, used for exception reporting
location - the location, used for exception reporting
Method Detail

getComponentClass

public java.lang.Class getComponentClass()
Description copied from interface: ComponentConstructor
Returns the class actually instantiated (which may be an enhanced subclass).

Specified by:
getComponentClass in interface ComponentConstructor

newInstance

public java.lang.Object newInstance()
Description copied from interface: ComponentConstructor
Requests that a new instance of the component.

Specified by:
newInstance in interface ComponentConstructor