/** * Bind this binding key to the given implementation class. * * This class will be instantiated and injected by the injection framework. */ public Binding<T> to(final Class<? extends T> implementation) { return underlying.to(implementation).asJava(); }
/** * Bind this binding key to the given provider class. * * The dependency injection framework will instantiate and inject this provider, and then invoke its `get` method * whenever an instance of the class is needed. */ public <P extends Provider<? extends T>> Binding<T> toProvider(final Class<P> provider) { return underlying.toProvider(provider).asJava(); }
/** * Configure the scope for this binding. */ public <A extends Annotation> Binding<T> in(final Class<A> scope) { return underlying.in(scope).asJava(); }
/** * Eagerly instantiate this binding when Play starts up. */ public Binding<T> eagerly() { return underlying.eagerly().asJava(); }
/** * Eagerly instantiate this binding when Play starts up. */ public Binding<T> eagerly() { return underlying.eagerly().asJava(); }
/** * Bind this binding key to the given provider instance. * * This provider instance will be invoked to obtain the implementation for the key. */ public Binding<T> to(final Provider<? extends T> provider) { return underlying.to(provider).asJava(); }
/** * Bind this binding key to the given implementation class. * * This class will be instantiated and injected by the injection framework. */ public Binding<T> to(final Class<? extends T> implementation) { return underlying.to(implementation).asJava(); }
/** * Eagerly instantiate this binding when Play starts up. */ public Binding<T> eagerly() { return underlying.eagerly().asJava(); }
/** * Bind this binding key to the given implementation class. * * This class will be instantiated and injected by the injection framework. */ public Binding<T> to(final Class<? extends T> implementation) { return underlying.to(implementation).asJava(); }
/** * Bind this binding key to itself. */ public Binding<T> toSelf() { return underlying.toSelf().asJava(); }
/** * Bind this binding key to itself. */ public Binding<T> toSelf() { return underlying.toSelf().asJava(); }
/** * Configure the scope for this binding. */ public <A extends Annotation> Binding<T> in(final Class<A> scope) { return underlying.in(scope).asJava(); }
/** * Bind this binding key to the given provider instance. * * This provider instance will be invoked to obtain the implementation for the key. */ public Binding<T> to(final Provider<? extends T> provider) { return underlying.to(provider).asJava(); }
/** * Bind this binding key to the given provider class. * * The dependency injection framework will instantiate and inject this provider, and then invoke its `get` method * whenever an instance of the class is needed. */ public <P extends Provider<? extends T>> Binding<T> toProvider(final Class<P> provider) { return underlying.toProvider(provider).asJava(); }
/** * Bind this binding key to itself. */ public Binding<T> toSelf() { return underlying.toSelf().asJava(); }
/** * Bind this binding key to the given instance. */ public <A extends T> Binding<T> to(final Supplier<A> instance) { return underlying.to(new FromJavaSupplier<>(instance)).asJava(); }
/** * Bind this binding key to the given instance. */ public <A extends T> Binding<T> to(final Supplier<A> instance) { return underlying.to(new FromJavaSupplier<>(instance)).asJava(); }
/** * Bind this binding key to another binding key. */ public Binding<T> to(final BindingKey<? extends T> key) { return underlying.to(key.asScala()).asJava(); }
/** * Bind this binding key to another binding key. */ public Binding<T> to(final BindingKey<? extends T> key) { return underlying.to(key.asScala()).asJava(); }
/** * Bind this binding key to the given instance. */ public <A extends T> Binding<T> to(final Supplier<A> instance) { return underlying.to(new FromJavaSupplier<>(instance)).asJava(); }