Interface RequestScoper

All Known Implementing Classes:
GuiceFilter.Context, ServletScopes.Context

public interface RequestScoper
Object that can be used to apply a request scope to a block of code.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Closeable subclass that does not throw any exceptions from close.
  • Method Summary

    Modifier and Type
    Method
    Description
    Opens up the request scope until the returned object is closed.
  • Method Details

    • open

      Opens up the request scope until the returned object is closed. Implementations should ensure (e.g. by blocking) that multiple threads cannot open the same request scope concurrently. It is allowable to open the same request scope on the same thread, as long as open/close calls are correctly nested.