Class ControllerAdviceBean

  • All Implemented Interfaces:
    Ordered

    public class ControllerAdviceBean
    extends Object
    implements Ordered
    Encapsulates information about an @ControllerAdvice Spring-managed bean without necessarily requiring it to be instantiated.

    The findAnnotatedBeans(ApplicationContext) method can be used to discover such beans. However, a ControllerAdviceBean may be created from any object, including ones without an @ControllerAdvice annotation.

    Since:
    3.2
    Author:
    Rossen Stoyanchev, Brian Clozel, Juergen Hoeller, Sam Brannen