All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.inject.binder.ScopedBindingBuilder Maven / Gradle / Ivy

package com.google.inject.binder;

import com.google.inject.Scope;

import java.lang.annotation.Annotation;

/**
 * See the EDSL examples at {@link com.google.inject.Binder}.
 */
public interface ScopedBindingBuilder {

    /**
     * See the EDSL examples at {@link com.google.inject.Binder}.
     */
    void in(Class scopeAnnotation);

    /**
     * See the EDSL examples at {@link com.google.inject.Binder}.
     */
    void in(Scope scope);

    /**
     * Instructs the {@link com.google.inject.Injector} to eagerly initialize this
     * singleton-scoped binding upon creation. Useful for application
     * initialization logic.  See the EDSL examples at
     * {@link com.google.inject.Binder}.
     */
    void asEagerSingleton();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy