Package net.shibboleth.ext.spring.util
Class DeprecatedBeanDetector
- java.lang.Object
-
- net.shibboleth.ext.spring.util.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
-
-
Constructor Summary
Constructors Constructor Description DeprecatedBeanDetector(Map<String,String> map, String logContext)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonApplicationEvent(ContextRefreshedEvent event)
-
-
-
Field Detail
-
warnContext
@Nullable private final String warnContext
Context for log warnings.
-
beanNames
@Nonnull @NonnullElements private final Map<String,String> beanNames
Deprecated bean names.
-
-
Method Detail
-
onApplicationEvent
public void onApplicationEvent(ContextRefreshedEvent event)
- Specified by:
onApplicationEventin interfaceApplicationListener<ContextRefreshedEvent>
-
-