org.apache.tapestry.services
Interface ComponentConstructorFactory
- All Known Implementing Classes:
- ComponentConstructorFactoryImpl
- public interface ComponentConstructorFactory
tapestry.enhance.ComponentConstructorFactory
service that acts as a wrapper around
EnhancementOperation
, used to take a base component class
and provide an enhanced subclass of it.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
getComponentConstructor
public ComponentConstructor getComponentConstructor(IComponentSpecification specification,
java.lang.String className)
- Passed a component specification and the base component class name, provides back an object
used to instantiate instances of the component.
ComponentConstructor
s are internally
cached, repeated calls with the same specification object will yield the same result.
- Parameters:
specification
- the page or component specification which directs the enhancement operationclassName
- the name of the base component class (in some cases,
{@link IComponentSpecification#getComponentClassName() is null andother code
provides the default)