Interface Scope

All Superinterfaces:
AutoCloseable

public interface Scope extends AutoCloseable
A scope, such as request scope.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Stop the scope, and destroy all service instances created within it.
    Service registry instance associated with this scope.
  • Method Details

    • close

      void close()
      Stop the scope, and destroy all service instances created within it.
      Specified by:
      close in interface AutoCloseable
    • registry

      ScopedRegistry registry()
      Service registry instance associated with this scope.
      Returns:
      services