spring-framework / org.springframework.beans.factory.config / DeprecatedBeanWarner

DeprecatedBeanWarner

open class DeprecatedBeanWarner : BeanFactoryPostProcessor

Bean factory post processor that logs a warning for Deprecated beans.

Author
Arjen Poutsma

Since
3.0.3

Constructors

<init>

DeprecatedBeanWarner()

Bean factory post processor that logs a warning for Deprecated beans.

Functions

postProcessBeanFactory

open fun postProcessBeanFactory(beanFactory: ConfigurableListableBeanFactory): Unit

setLoggerName

open fun setLoggerName(loggerName: String): Unit

Set the name of the logger to use. The name will be passed to the underlying logger implementation through Commons Logging, getting interpreted as log category according to the logger's configuration.

This can be specified to not log into the category of this warner class but rather into a specific named category.