Class InternalImportBindingBuilder<T>

  • All Implemented Interfaces:
    com.google.inject.binder.ScopedBindingBuilder

    public final class InternalImportBindingBuilder<T>
    extends java.lang.Object
    implements com.google.inject.binder.ScopedBindingBuilder
    Import binding builder.
    • Constructor Summary

      Constructors 
      Constructor Description
      InternalImportBindingBuilder​(com.google.inject.binder.LinkedBindingBuilder<T> binder, com.google.inject.Key<T> concreteType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void asEagerSingleton()  
      void in​(com.google.inject.Scope scope)  
      void in​(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation)  
      com.google.inject.binder.ScopedBindingBuilder to​(com.google.inject.TypeLiteral<? extends T> type)
      Bind a different type as the given binding.
      com.google.inject.binder.ScopedBindingBuilder to​(java.lang.Class<? extends T> clazz)
      Bind a different type as the given binding.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InternalImportBindingBuilder

        public InternalImportBindingBuilder​(com.google.inject.binder.LinkedBindingBuilder<T> binder,
                                            com.google.inject.Key<T> concreteType)
    • Method Detail

      • to

        public com.google.inject.binder.ScopedBindingBuilder to​(java.lang.Class<? extends T> clazz)
        Bind a different type as the given binding. This allows binding e.g. implementations to interface types.
      • to

        public com.google.inject.binder.ScopedBindingBuilder to​(com.google.inject.TypeLiteral<? extends T> type)
        Bind a different type as the given binding. This allows binding e.g. implementations to interface types.
      • in

        public void in​(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation)
        Specified by:
        in in interface com.google.inject.binder.ScopedBindingBuilder
      • in

        public void in​(com.google.inject.Scope scope)
        Specified by:
        in in interface com.google.inject.binder.ScopedBindingBuilder
      • asEagerSingleton

        public void asEagerSingleton()
        Specified by:
        asEagerSingleton in interface com.google.inject.binder.ScopedBindingBuilder