Class 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