public interface BeanClassLoaderAware extends Aware
This is mainly intended to be implemented by framework classes which have to pick up application classes by name despite themselves potentially being loaded from a shared class loader.
For a list of all bean lifecycle methods, see the
BeanFactory javadocs
.
BeanNameAware
,
BeanFactoryAware
,
InitializingBean
Modifier and Type | Method and Description |
---|---|
void |
setBeanClassLoader(java.lang.ClassLoader classLoader)
Callback that supplies the bean <code>class loader</code> to
a bean instance.
|
void setBeanClassLoader(java.lang.ClassLoader classLoader)
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.
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()