|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.event.InvalidationEventHubImpl
org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl
public final class ComponentInstantiatorSourceImpl
A wrapper around a Javassist class loader that allows certain classes to be modified as they are loaded.
| Constructor Summary | |
|---|---|
ComponentInstantiatorSourceImpl(org.slf4j.Logger logger,
ClassLoader parent,
ComponentClassTransformer transformer,
InternalRequestGlobals internalRequestGlobals,
ClasspathURLConverter classpathURLConverter)
|
|
| Method Summary | |
|---|---|
void |
addPackage(String packageName)
Adds a controlled package. |
void |
checkForUpdates()
Invoked to force the receiver to check for updates to whatever underlying resources it makes use of. |
boolean |
exists(String className)
Checks to see if a fully qualfied class name exists. |
ClassFactory |
getClassFactory()
Returns a class factory that can be used to generate additional classes around enhanced classes, or create subclasses of enhanced classes. |
CtClassSource |
getClassSource()
Returns a class source used when creating new classes dynamically. |
Instantiator |
getInstantiator(String className)
Given the name of a component class, provides an instantiator for that component. |
InvalidationEventHub |
getInvalidationEventHub()
Invalidation event hub used to notify listeners that component classes have changed. |
void |
onLoad(javassist.ClassPool pool,
String classname)
|
void |
start(javassist.ClassPool pool)
Does nothing. |
| Methods inherited from class org.apache.tapestry5.internal.event.InvalidationEventHubImpl |
|---|
addInvalidationListener, fireInvalidationEvent |
| 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,
ClassLoader parent,
ComponentClassTransformer transformer,
InternalRequestGlobals internalRequestGlobals,
ClasspathURLConverter classpathURLConverter)
| Method Detail |
|---|
public void checkForUpdates()
UpdateListener
checkForUpdates in interface UpdateListener
public void onLoad(javassist.ClassPool pool,
String classname)
throws javassist.NotFoundException,
javassist.CannotCompileException
onLoad in interface javassist.Translatorjavassist.NotFoundException
javassist.CannotCompileException
public void start(javassist.ClassPool pool)
throws javassist.NotFoundException,
javassist.CannotCompileException
start in interface javassist.Translatorjavassist.NotFoundException
javassist.CannotCompileExceptionpublic Instantiator getInstantiator(String className)
ComponentInstantiatorSource
getInstantiator in interface ComponentInstantiatorSourceclassName - FQCN to find (and perhaps transform and load)
public void addPackage(String packageName)
ComponentInstantiatorSource
addPackage in interface ComponentInstantiatorSourcepackageName - the package name to add (must not be blank)public boolean exists(String className)
ComponentInstantiatorSource
exists in interface ComponentInstantiatorSourceclassName - name of class to check
public ClassFactory getClassFactory()
ComponentInstantiatorSource
getClassFactory in interface ComponentInstantiatorSourcepublic CtClassSource getClassSource()
ComponentInstantiatorSource
getClassSource in interface ComponentInstantiatorSourcepublic InvalidationEventHub getInvalidationEventHub()
ComponentInstantiatorSource
getInvalidationEventHub in interface ComponentInstantiatorSourceComponentClasses
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||