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()
UpdateListener
checkForUpdates
in interface UpdateListener
public Object createObject()
ObjectCreator
createObject
in interface ObjectCreator
protected abstract Object createInstance(Class clazz)
public boolean shouldInterceptClassLoading(String className)
ClassLoaderDelegate
shouldInterceptClassLoading
in interface ClassLoaderDelegate
className
- fully qualified class namepublic Class<?> loadAndTransformClass(String className) throws ClassNotFoundException
ClassLoaderDelegate
loadAndTransformClass
in interface ClassLoaderDelegate
className
- binary class nameClassNotFoundException
public Class<?> doClassLoad(String className) throws IOException
IOException
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.