Interface BeanClassLoaderAware
- All Superinterfaces:
Aware
- All Known Implementing Classes:
AbstractAdvisingBeanPostProcessor
,AbstractAdvisorAutoProxyCreator
,AbstractApplicationEventMulticaster
,AbstractAutoProxyCreator
,AbstractBeanFactoryAwareAdvisingPostProcessor
,AbstractEntityManagerFactoryBean
,AbstractFactoryBean
,AbstractServiceLoaderBasedFactoryBean
,AbstractSingletonProxyFactoryBean
,AnnotationAwareAspectJAutoProxyCreator
,AnnotationMBeanExporter
,AspectJAwareAdvisorAutoProxyCreator
,AspectJWeavingEnabler
,AsyncAnnotationBeanPostProcessor
,BeanNameAutoProxyCreator
,BshScriptEvaluator
,BshScriptFactory
,CacheProxyFactoryBean
,ConcurrentMapCacheManager
,ConfigurationClassPostProcessor
,CustomAutowireConfigurer
,CustomScopeConfigurer
,DefaultAdvisorAutoProxyCreator
,DefaultContextLoadTimeWeaver
,FieldRetrievingFactoryBean
,GroovyScriptEvaluator
,GroovyScriptFactory
,InfrastructureAdvisorAutoProxyCreator
,InterfaceBasedMBeanInfoAssembler
,Jackson2ObjectMapperFactoryBean
,Jaxb2Marshaller
,JCacheManagerFactoryBean
,JndiObjectFactoryBean
,ListFactoryBean
,LoadTimeWeavingConfiguration
,LocalContainerEntityManagerFactoryBean
,LocalEntityManagerFactoryBean
,MapFactoryBean
,MappingJackson2MessageConverter
,MBeanClientInterceptor
,MBeanExporter
,MBeanProxyFactoryBean
,MBeanServerConnectionFactoryBean
,MethodInvokingBean
,MethodInvokingFactoryBean
,MethodInvokingJobDetailFactoryBean
,MethodInvokingRunnable
,MethodMapTransactionAttributeSource
,MethodValidationPostProcessor
,ObjectFactoryCreatingFactoryBean
,PersistenceExceptionTranslationPostProcessor
,ProviderCreatingFactoryBean
,ProxyFactoryBean
,ProxyProcessorSupport
,ResourceBundleMessageSource
,ResourceBundleThemeSource
,ScriptFactoryPostProcessor
,ServiceFactoryBean
,ServiceListFactoryBean
,ServiceLoaderFactoryBean
,SetFactoryBean
,SimpleApplicationEventMulticaster
,SortedResourcesFactoryBean
,StandardScriptEvaluator
,StandardScriptFactory
,TransactionProxyFactoryBean
,XStreamMarshaller
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, Chris Beams
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setBeanClassLoader
(ClassLoader classLoader) Callback that supplies the beanclass loader
to a bean instance.
-
Method Details
-
setBeanClassLoader
Callback that supplies the beanclass 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
-