Class DeprecatedBeanDetector
java.lang.Object
net.shibboleth.shared.spring.config.DeprecatedBeanDetector
- All Implemented Interfaces:
EventListener,ApplicationListener<ContextRefreshedEvent>
public class DeprecatedBeanDetector
extends Object
implements ApplicationListener<ContextRefreshedEvent>
A utility bean to look for and warn about deprecated bean names.
In practice this is difficult to use effectively because it has to be run only after all other beans are in place, so it's best-suited to injection into application workflows such that it's deliberately used at a known point in the process.
- Since:
- 6.1.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeprecatedBeanDetector(Map<String, String> map, String logContext) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Field Details
-
warnContext
Context for log warnings. -
beanNames
Deprecated bean names.
-
-
Constructor Details
-
DeprecatedBeanDetector
Constructor.- Parameters:
map- bean names to detect with replacements identifiedlogContext- context for log warnings
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceApplicationListener<ContextRefreshedEvent>
-