Interface ScopedBindingBuilder

All Known Subinterfaces:
AnnotatedBindingBuilder<T>, LinkedBindingBuilder<T>
All Known Implementing Classes:
BindingBuilder

public interface ScopedBindingBuilder
See the EDSL examples at Binder.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Instructs the Injector to eagerly initialize this singleton-scoped binding upon creation.
    void
    in(Class<? extends Annotation> scopeAnnotation)
    See the EDSL examples at Binder.
    void
    in(Scope scope)
    See the EDSL examples at Binder.
  • Method Details

    • in

      void in(Class<? extends Annotation> scopeAnnotation)
      See the EDSL examples at Binder.
    • in

      void in(Scope scope)
      See the EDSL examples at Binder.
    • asEagerSingleton

      void asEagerSingleton()
      Instructs the Injector to eagerly initialize this singleton-scoped binding upon creation. Useful for application initialization logic. See the EDSL examples at Binder.