public abstract class RemotingSupport extends Object implements org.springframework.beans.factory.BeanClassLoaderAware
Modifier and Type | Field and Description |
---|---|
protected Log |
logger
Logger available to subclasses.
|
Constructor and Description |
---|
RemotingSupport() |
Modifier and Type | Method and Description |
---|---|
protected ClassLoader |
getBeanClassLoader()
Return the ClassLoader that this accessor operates in,
to be used for deserializing and for generating proxies.
|
protected ClassLoader |
overrideThreadContextClassLoader()
Override the thread context ClassLoader with the environment's bean ClassLoader
if necessary, i.e.
|
protected void |
resetThreadContextClassLoader(ClassLoader original)
Reset the original thread context ClassLoader if necessary.
|
void |
setBeanClassLoader(ClassLoader classLoader) |
protected final Log logger
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
protected ClassLoader getBeanClassLoader()
@Nullable protected ClassLoader overrideThreadContextClassLoader()
null
if not overriddenprotected void resetThreadContextClassLoader(@Nullable ClassLoader original)
original
- the original thread context ClassLoader,
or null
if not overridden (and hence nothing to reset)