|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.enhance.DefaultComponentClassEnhancer
public class DefaultComponentClassEnhancer
Default implementation of IComponentClassEnhancer
.
Constructor Summary | |
---|---|
DefaultComponentClassEnhancer(IResourceResolver resolver,
boolean disableValidation)
|
Method Summary | |
---|---|
protected Class |
constructComponentClass(IComponentSpecification specification,
String className)
Returns the class to be used for the component, which is either the class with the given name, or an enhanced subclass. |
protected ComponentClassFactory |
createComponentClassFactory(IComponentSpecification specification,
Class componentClass)
Constructs a new factory for enhancing the specified class. |
protected IEnhancedClassFactory |
createEnhancedClassFactory()
|
protected Class |
getCachedClass(IComponentSpecification specification)
|
Class |
getEnhancedClass(IComponentSpecification specification,
String className)
Used to access the class for a given component (or page). |
IResourceResolver |
getResourceResolver()
|
void |
reset()
Clears all cached data for the enhancer; this includes references to enhanced classes. |
protected void |
storeCachedClass(IComponentSpecification specification,
Class cachedClass)
|
protected void |
validateEnhancedClass(Class subject,
String className,
IComponentSpecification specification)
Invoked to validate that an enhanced class is acceptible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultComponentClassEnhancer(IResourceResolver resolver, boolean disableValidation)
resolver
- resource resolver used to locate classesdisableValidation
- if true, then validation (of unimplemented abstract methods)
is skippedMethod Detail |
---|
protected IEnhancedClassFactory createEnhancedClassFactory()
public void reset()
IComponentClassEnhancer
reset
in interface IComponentClassEnhancer
public IResourceResolver getResourceResolver()
public Class getEnhancedClass(IComponentSpecification specification, String className)
IComponentClassEnhancer
getEnhancedClass
in interface IComponentClassEnhancer
specification
- the specification for the componentclassName
- the name of base class to enhance, as extracted
from the specification (or possibly, from a default).protected void storeCachedClass(IComponentSpecification specification, Class cachedClass)
protected Class getCachedClass(IComponentSpecification specification)
protected Class constructComponentClass(IComponentSpecification specification, String className)
protected ComponentClassFactory createComponentClassFactory(IComponentSpecification specification, Class componentClass)
ComponentClassFactory
adding those
enhancements.
protected void validateEnhancedClass(Class subject, String className, IComponentSpecification specification)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |