Annotation Type RootContext


  • @Retention(RUNTIME)
    @Qualifier
    @Documented
    @Inherited
    public @interface RootContext
    An optional qualifier annotation which indicates that a @Component is to be instantiated in the root application context.

    The use of this annotation is not required, as by default, any @Component not otherwise qualified with one of the context qualifiers (eg. @ServerContext) will be instantiated in the root application context.

    This annotation can be used as documentation and a means to quickly find all components in the root context.

    Since:
    10.0
    Author:
    Petru Galanton