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

Method Summary
 ComponentConstructor getComponentConstructor(IComponentSpecification specification, String className)
          Passed a component specification and the base component class name, provides back an object used to instantiate instances of the component.
 

Method Detail

getComponentConstructor

ComponentConstructor getComponentConstructor(IComponentSpecification specification,
                                             String className)
Passed a component specification and the base component class name, provides back an object used to instantiate instances of the component. ComponentConstructors 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 operation
className - the name of the base component class (in some cases, IComponentSpecification.getComponentClassName() is null andother code provides the default)


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