Interface Scopes


@Contract @Describe public interface Scopes
Service that provides support for creating Scope instances.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TypeName
    Type name of this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    createScope(TypeName scope, String id, Map<ServiceDescriptor<?>,Object> initialBindings)
    Create a registry managed scope.
  • Field Details

    • TYPE

      static final TypeName TYPE
      Type name of this interface.
  • Method Details

    • createScope

      Scope createScope(TypeName scope, String id, Map<ServiceDescriptor<?>,Object> initialBindings)
      Create a registry managed scope.
      Parameters:
      scope - scope annotation type
      id - id of the scope
      initialBindings - initial bindings for the created scope
      Returns:
      a new scope instance