Annotation Interface Scope


@Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface Scope
Selects the lifetime of a managed component or produced value; no cluster singleton is implied.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Supported explicit ownership lifetimes.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the managed lifetime.
  • Element Details

    • value

      Scope.Kind value
      Returns the managed lifetime.
      Returns:
      activation scope by default
      Default:
      ACTIVATION