public abstract class RemotingSupport extends java.lang.Object implements BeanClassLoaderAware
Modifier and Type | Field and Description |
---|---|
private java.lang.ClassLoader |
beanClassLoader |
protected Log |
logger
Logger available to subclasses
|
Constructor and Description |
---|
RemotingSupport() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.ClassLoader |
getBeanClassLoader()
Return the ClassLoader that this accessor operates in,
to be used for deserializing and for generating proxies.
|
protected java.lang.ClassLoader |
overrideThreadContextClassLoader()
Override the thread context ClassLoader with the environment's bean ClassLoader
if necessary, i.e.
|
protected void |
resetThreadContextClassLoader(java.lang.ClassLoader original)
Reset the original thread context ClassLoader if necessary.
|
void |
setBeanClassLoader(java.lang.ClassLoader classLoader)
Callback that supplies the bean <code>class loader</code> to
a bean instance.
|
protected final Log logger
private java.lang.ClassLoader beanClassLoader
public void setBeanClassLoader(java.lang.ClassLoader classLoader)
BeanClassLoaderAware
Invoked after the population of normal bean properties but
before an initialization callback such as
InitializingBean's
InitializingBean.afterPropertiesSet()
method or a custom init-method.
setBeanClassLoader
in interface BeanClassLoaderAware
classLoader
- the owning class loader; may be null
in
which case a default ClassLoader
must be used, for example
the ClassLoader
obtained via
ClassUtils.getDefaultClassLoader()
protected java.lang.ClassLoader getBeanClassLoader()
protected java.lang.ClassLoader overrideThreadContextClassLoader()
null
if not overriddenprotected void resetThreadContextClassLoader(java.lang.ClassLoader original)
original
- the original thread context ClassLoader,
or null
if not overridden (and hence nothing to reset)