public abstract class AbstractReloadableObjectCreator extends Object implements ObjectCreator, UpdateListener, ClassLoaderDelegate
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractReloadableObjectCreator(PlasticProxyFactory proxyFactory,
ClassLoader baseClassLoader,
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 Object |
createInstance(Class clazz)
Invoked when an instance of the class is needed.
|
Object |
createObject()
Create and return the object.
|
Class<?> |
doClassLoad(String className) |
Class<?> |
loadAndTransformClass(String className)
Load the class, transforming it as necessary.
|
boolean |
shouldInterceptClassLoading(String className)
Identifies which classes are to be loaded.
|
protected AbstractReloadableObjectCreator(PlasticProxyFactory proxyFactory, ClassLoader baseClassLoader, String implementationClassName, org.slf4j.Logger logger, OperationTracker tracker)
public void checkForUpdates()
UpdateListenercheckForUpdates in interface UpdateListenerpublic Object createObject()
ObjectCreatorcreateObject in interface ObjectCreatorprotected abstract Object createInstance(Class clazz)
public boolean shouldInterceptClassLoading(String className)
ClassLoaderDelegateshouldInterceptClassLoading in interface ClassLoaderDelegateclassName - fully qualified class namepublic Class<?> loadAndTransformClass(String className) throws ClassNotFoundException
ClassLoaderDelegateloadAndTransformClass in interface ClassLoaderDelegateclassName - binary class nameClassNotFoundExceptionpublic Class<?> doClassLoad(String className) throws IOException
IOException5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.