public abstract class AbstractReloadableObjectCreator extends java.lang.Object implements ObjectCreator, UpdateListener, ClassLoaderDelegate
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractReloadableObjectCreator(PlasticProxyFactory proxyFactory,
java.lang.ClassLoader baseClassLoader,
java.lang.String implementationClassName,
org.slf4j.Logger logger,
OperationTracker tracker) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForUpdates()
Invoked to force the receiver to check for updates to whatever underlying resources it makes use of.
|
protected abstract java.lang.Object |
createInstance(java.lang.Class clazz)
Invoked when an instance of the class is needed.
|
java.lang.Object |
createObject()
Create and return the object.
|
java.lang.Class<?> |
doClassLoad(java.lang.String className) |
java.lang.Class<?> |
loadAndTransformClass(java.lang.String className)
Load the class, transforming it as necessary.
|
boolean |
shouldInterceptClassLoading(java.lang.String className)
Identifies which classes are to be loaded.
|
protected AbstractReloadableObjectCreator(PlasticProxyFactory proxyFactory, java.lang.ClassLoader baseClassLoader, java.lang.String implementationClassName, org.slf4j.Logger logger, OperationTracker tracker)
public void checkForUpdates()
UpdateListenercheckForUpdates in interface UpdateListenerpublic java.lang.Object createObject()
ObjectCreatorcreateObject in interface ObjectCreatorprotected abstract java.lang.Object createInstance(java.lang.Class clazz)
public boolean shouldInterceptClassLoading(java.lang.String className)
ClassLoaderDelegateshouldInterceptClassLoading in interface ClassLoaderDelegateclassName - fully qualified class namepublic java.lang.Class<?> loadAndTransformClass(java.lang.String className) throws java.lang.ClassNotFoundException
ClassLoaderDelegateloadAndTransformClass in interface ClassLoaderDelegateclassName - binary class namejava.lang.ClassNotFoundExceptionpublic java.lang.Class<?> doClassLoad(java.lang.String className) throws java.io.IOException
java.io.IOException${project.version} - Copyright © 2003-2015 The Apache Software Foundation.