org.apache.tapestry.engine
Interface IComponentClassEnhancer
- All Known Implementing Classes:
- DefaultComponentClassEnhancer
- public interface IComponentClassEnhancer
A provider of enhanced classes, classes with new methods
and new attributes, and possibly, implementing new
Java interfaces. The primary use of class enhancement is to
automate the creation of transient and persistant properties.
Implementations of this interface must be threadsafe.
- Since:
- 3.0
- Version:
- $Id: IComponentClassEnhancer.java,v 1.3 2003/04/17 21:33:51 hlship Exp $
- Author:
- Howard Lewis Ship
reset
public void reset()
- Clears all cached data for the enhancer; this includes references to
enhanced classes.
getEnhancedClass
public Class getEnhancedClass(IComponentSpecification specification,
String className)
- Used to access the class for a given component (or page). Returns the
specified class, or an enhanced version of the class if the
component requires enhancement.
- Parameters:
specification
- the specification for the componentclassName
- the name of base class to enhance, as extracted
from the specification (or possibly, from a default).- Throws:
ApplicationRuntimeException
- if the class does not exist, is invalid,
or may not be enhanced.