Class ThrowingProviderBinder.SecondaryBinder<P extends CheckedProvider,​T>

  • java.lang.Object
    • com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder<P,​T>
    • Constructor Detail

      • SecondaryBinder

        public SecondaryBinder​(Class<P> interfaceType,
                               Type valueType)
    • Method Detail

      • scopeExceptions

        public ThrowingProviderBinder.SecondaryBinder<P,​T> scopeExceptions​(boolean scopeExceptions)
        Determines if exceptions should be scoped. By default exceptions are scoped.
        Parameters:
        scopeExceptions - whether exceptions should be scoped.
        Since:
        4.0
      • to

        public com.google.inject.binder.ScopedBindingBuilder to​(P target)
      • to

        public com.google.inject.binder.ScopedBindingBuilder to​(Class<? extends P> targetType)
      • providing

        public com.google.inject.binder.ScopedBindingBuilder providing​(Class<? extends T> cxtorClass)
        Since:
        4.0
      • providing

        public com.google.inject.binder.ScopedBindingBuilder providing​(com.google.inject.TypeLiteral<? extends T> cxtorLiteral)
        Since:
        4.0
      • to

        public com.google.inject.binder.ScopedBindingBuilder to​(com.google.inject.Key<? extends P> targetKey)