|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@UsesMappedConfiguration(key=java.lang.String.class, value=ControlledPackageType.class) public interface ComponentInstantiatorSource
Creates Instantiator
s for components, based on component class name.
This will involve transforming the component's class before it is loaded.
InvalidationListener
s, so that
any information derived from loaded classes can be discarded and rebuilt when classes change.
The strategy used is that when any class (in a controlled package) changes, the entire class loader is
discarded, along with any instances derived from those classes. A new class loader is created, and then invalidation
events are fired to listeners.
Starting in Tapestry 5.3, the packages that are loaded are controlled by a configuration that maps package names to
ControlledPackageType
s.
Method Summary | |
---|---|
boolean |
exists(String className)
Checks to see if a fully qualified class name exists. |
void |
forceComponentInvalidation()
Forces invalidation logic, as if a component class on the disk had changed, forcing a reload of all pages and components. |
ClassFactory |
getClassFactory()
Deprecated. Deprecated in 5.3, to be removed in 5.4 |
Instantiator |
getInstantiator(String classname)
Given the name of a component class, provides an instantiator for that component. |
PlasticProxyFactory |
getProxyFactory()
Returns a proxy factory that can be used to generate additional classes around enhanced classes, or create subclasses of enhanced classes. |
Method Detail |
---|
Instantiator getInstantiator(String classname)
classname
- FQCN to find (and perhaps transform and load)
boolean exists(String className)
className
- name of class to check
ClassFactory getClassFactory()
PlasticProxyFactory getProxyFactory()
void forceComponentInvalidation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |