Class SessionScope

  • All Implemented Interfaces:
    com.google.inject.Scope

    public class SessionScope
    extends java.lang.Object
    implements com.google.inject.Scope
    SessionScope
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SessionScope.Memento  
    • Constructor Summary

      Constructors 
      Constructor Description
      SessionScope()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void enter()  
      void enter​(SessionScope.Memento memento)  
      void exit()  
      SessionScope.Memento memento()  
      <T> com.google.inject.Provider<T> scope​(com.google.inject.Key<T> key, com.google.inject.Provider<T> unscoped)  
      <T> void seed​(java.lang.Class<T> clazz, com.google.inject.Provider<T> value)  
      <T> void seed​(java.lang.Class<T> clazz, T value)  
      static <T> com.google.inject.Provider<T> seededKeyProvider()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.inject.Scope

        toString
    • Constructor Detail

      • SessionScope

        public SessionScope()
    • Method Detail

      • enter

        public void enter()
      • exit

        public void exit()
      • seed

        public <T> void seed​(java.lang.Class<T> clazz,
                             com.google.inject.Provider<T> value)
      • seed

        public <T> void seed​(java.lang.Class<T> clazz,
                             T value)
      • scope

        public <T> com.google.inject.Provider<T> scope​(com.google.inject.Key<T> key,
                                                       com.google.inject.Provider<T> unscoped)
        Specified by:
        scope in interface com.google.inject.Scope
      • seededKeyProvider

        public static <T> com.google.inject.Provider<T> seededKeyProvider()