The Spring Framework

org.springframework.beans.factory
Interface BeanClassLoaderAware

All Known Implementing Classes:
AbstractAdvisorAutoProxyCreator, AbstractAutoProxyCreator, AbstractHttpInvokerRequestExecutor, AbstractSingletonProxyFactoryBean, AnnotationAwareAspectJAutoProxyCreator, AspectJAwareAdvisorAutoProxyCreator, AxisBeanMappingServicePostProcessor, BeanNameAutoProxyCreator, BshScriptFactory, BurlapProxyFactoryBean, BurlapServiceExporter, CommonsHttpInvokerRequestExecutor, CustomEditorConfigurer, DefaultAdvisorAutoProxyCreator, FieldRetrievingFactoryBean, GroovyScriptFactory, HessianProxyFactoryBean, HessianServiceExporter, HttpInvokerClientInterceptor, HttpInvokerProxyFactoryBean, HttpInvokerServiceExporter, InterfaceBasedMBeanInfoAssembler, JaxRpcPortProxyFactoryBean, JmsInvokerProxyFactoryBean, JmsInvokerServiceExporter, JndiObjectFactoryBean, JndiRmiProxyFactoryBean, JndiRmiServiceExporter, JRubyScriptFactory, LocalContainerEntityManagerFactoryBean, LocalSessionFactoryBean, LocalStatelessSessionProxyFactoryBean, MBeanExporter, MBeanProxyFactoryBean, MBeanServerConnectionFactoryBean, MethodInvokingFactoryBean, MethodInvokingJobDetailFactoryBean, MethodInvokingRunnable, MethodInvokingTimerTaskFactoryBean, MethodMapTransactionAttributeSource, PersistenceExceptionTranslationPostProcessor, ProxyFactoryBean, RemoteExporter, RemoteInvocationBasedExporter, ResourceBundleMessageSource, RmiBasedExporter, RmiProxyFactoryBean, RmiServiceExporter, ScriptFactoryPostProcessor, SimpleHttpInvokerRequestExecutor, SimpleRemoteStatelessSessionProxyFactoryBean, TransactionProxyFactoryBean

public interface BeanClassLoaderAware

Callback that allows a bean to be aware of the bean class loader; that is, the class loader used by the present bean factory to load bean classes.

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.

Since:
2.0
Author:
Juergen Hoeller
See Also:
BeanNameAware, BeanFactoryAware, InitializingBean

Method Summary
 void setBeanClassLoader(ClassLoader classLoader)
          Callback that supplies the bean class loader to a bean instance.
 

Method Detail

setBeanClassLoader

void setBeanClassLoader(ClassLoader classLoader)
Callback that supplies the bean class loader to a bean instance.

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.

Parameters:
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()

The Spring Framework

Copyright © 2002-2007 The Spring Framework.