spring-framework / org.springframework.context.weaving / LoadTimeWeaverAwareProcessor

LoadTimeWeaverAwareProcessor

open class LoadTimeWeaverAwareProcessor : BeanPostProcessor, BeanFactoryAware

org.springframework.beans.factory.config.BeanPostProcessor implementation that passes the context's default LoadTimeWeaver to beans that implement the LoadTimeWeaverAware interface.

org.springframework.context.ApplicationContext will automatically register this with their underlying BeanFactory, provided that a default LoadTimeWeaver is actually available.

Applications should not use this class directly.

Author
Juergen Hoeller

Since
2.5

See Also
LoadTimeWeaverAwareorg.springframework.context.ConfigurableApplicationContext#LOAD_TIME_WEAVER_BEAN_NAME

Constructors

<init>

LoadTimeWeaverAwareProcessor()

Create a new LoadTimeWeaverAwareProcessor that will auto-retrieve the LoadTimeWeaver from the containing BeanFactory, expecting a bean named "loadTimeWeaver".

LoadTimeWeaverAwareProcessor(loadTimeWeaver: LoadTimeWeaver)

Create a new LoadTimeWeaverAwareProcessor for the given LoadTimeWeaver.

If the given loadTimeWeaver is null, then a LoadTimeWeaver will be auto-retrieved from the containing BeanFactory, expecting a bean named "loadTimeWeaver".

LoadTimeWeaverAwareProcessor(beanFactory: BeanFactory)

Create a new LoadTimeWeaverAwareProcessor.

The LoadTimeWeaver will be auto-retrieved from the given BeanFactory, expecting a bean named "loadTimeWeaver".

Functions

postProcessAfterInitialization

open fun postProcessAfterInitialization(bean: Any, name: String): Any

postProcessBeforeInitialization

open fun postProcessBeforeInitialization(bean: Any, beanName: String): Any

setBeanFactory

open fun setBeanFactory(beanFactory: BeanFactory): Unit