@Deprecated beans.
| Modifier and Type | Field and Description |
|---|---|
| protected transient Log | logger
Logger available to subclasses. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| protected void | logDeprecatedBean(String
the name of the deprecated bean beanName, Class<?> the user-specified type of the deprecated bean beanType, BeanDefinition the definition of the deprecated bean beanDefinition)Logs a warning for a bean annotated with |
| public void | postProcessBeanFactory(ConfigurableListableBeanFactory
the bean factory used by the application context beanFactory)Implements org. Modify the application context's internal bean factory after its standard initialization. |
| public void | |
| protected void |
| logger | back to summary |
|---|---|
| protected transient Log logger Logger available to subclasses. | |
| DeprecatedBeanWarner | back to summary |
|---|---|
| public DeprecatedBeanWarner() | |
| isLogEnabled | back to summary |
|---|---|
| protected boolean isLogEnabled() Determine whether the Default is | |
| logDeprecatedBean | back to summary |
|---|---|
| protected void logDeprecatedBean(String beanName, Class<?> beanType, BeanDefinition beanDefinition) Logs a warning for a bean annotated with
| |
| postProcessBeanFactory | back to summary |
|---|---|
| public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException Implements org. Doc from org. Modify the application context's internal bean factory after its standard initialization. All bean definitions will have been loaded, but no beans will have been instantiated yet. This allows for overriding or adding properties even to eager-initializing beans.
| |
| setLoggerName | back to summary |
|---|---|
| public void setLoggerName(String loggerName) 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. | |
| writeToLog | back to summary |
|---|---|
| protected void writeToLog(String message) Actually write to the underlying log. The default implementations logs the message at "warn" level.
| |