|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl
public final class ComponentInstantiatorSourceImpl
A wrapper around a PlasticManager
that allows certain classes to be modified as they are loaded.
Constructor Summary | |
---|---|
ComponentInstantiatorSourceImpl(org.slf4j.Logger logger,
LoggerSource loggerSource,
PlasticProxyFactory proxyFactory,
ComponentClassTransformWorker2 transformerChain,
ClasspathURLConverter classpathURLConverter,
OperationTracker tracker,
Map<String,ControlledPackageType> configuration,
boolean productionMode,
ComponentClassResolver resolver,
InternalComponentInvalidationEventHub invalidationHub)
|
Method Summary | ||
---|---|---|
void |
checkForUpdates()
Invoked to force the receiver to check for updates to whatever underlying resources it makes use of. |
|
void |
classWillLoad(PlasticClassEvent event)
Invoked just before a class is to be loaded. |
|
|
configureInstantiator(String className,
ClassInstantiator<T> instantiator)
Configures the instantiator for a transformed PlasticClass. |
|
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()
Returns a class factory that can be used to generate additional classes around enhanced classes, or create subclasses of enhanced classes. |
|
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. |
|
void |
listenForUpdates(UpdateListenerHub hub)
|
|
void |
objectWasInvalidated()
Invoked to indicate that some object is invalid. |
|
void |
transform(PlasticClass plasticClass)
Perform whatever transformations are appropriate on this PlasticClass. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentInstantiatorSourceImpl(org.slf4j.Logger logger, LoggerSource loggerSource, @Builtin PlasticProxyFactory proxyFactory, @Primary ComponentClassTransformWorker2 transformerChain, ClasspathURLConverter classpathURLConverter, OperationTracker tracker, Map<String,ControlledPackageType> configuration, @Symbol(value="tapestry.production-mode") boolean productionMode, ComponentClassResolver resolver, InternalComponentInvalidationEventHub invalidationHub)
Method Detail |
---|
@PostInjection public void listenForUpdates(UpdateListenerHub hub)
public void checkForUpdates()
UpdateListener
checkForUpdates
in interface UpdateListener
public void forceComponentInvalidation()
ComponentInstantiatorSource
forceComponentInvalidation
in interface ComponentInstantiatorSource
public void objectWasInvalidated()
InvalidationListener
objectWasInvalidated
in interface InvalidationListener
public Instantiator getInstantiator(String className)
ComponentInstantiatorSource
getInstantiator
in interface ComponentInstantiatorSource
className
- FQCN to find (and perhaps transform and load)
public boolean exists(String className)
ComponentInstantiatorSource
exists
in interface ComponentInstantiatorSource
className
- name of class to check
public ClassFactory getClassFactory()
ComponentInstantiatorSource
getClassFactory
in interface ComponentInstantiatorSource
public PlasticProxyFactory getProxyFactory()
ComponentInstantiatorSource
getProxyFactory
in interface ComponentInstantiatorSource
public void transform(PlasticClass plasticClass)
PlasticClassTransformer
transform
in interface PlasticClassTransformer
public <T> ClassInstantiator<T> configureInstantiator(String className, ClassInstantiator<T> instantiator)
PlasticManagerDelegate
configureInstantiator
in interface PlasticManagerDelegate
className
- fully qualified class name that was transformedinstantiator
- default instantiator, which has an empty InstanceContext
InstanceContext
valuespublic void classWillLoad(PlasticClassEvent event)
PlasticClassListener
classWillLoad
in interface PlasticClassListener
event
- describes the class to be loaded, and gives access to its disassembled
bytecode (for debugging purposes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |