Annotation Type Scope


  • @Retention(CLASS)
    @Inherited
    public @interface Scope
    Defines the scope of a component in a cache system. If not specified, components default to the Scopes.NAMED_CACHE scope.

    Note: The Scope annotation is inherited so that the annotation processor can find subclasses. Although annotating interfaces is allowed, it is preferable to annotate only classes.

    TODO Remove ScopeDetector and change retention to CLASS
    Since:
    4.0
    Author:
    Manik Surtani
    See Also:
    Scopes
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      Scopes value