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

com.google.inject.spi.ProviderKeyBinding Maven / Gradle / Ivy

package com.google.inject.spi;

import com.google.inject.Binding;
import com.google.inject.Key;

/**
 * A binding to a provider key. To resolve injections, the provider key is first resolved, then that
 * provider's {@code get} method is invoked.
 */
public interface ProviderKeyBinding extends Binding {

    /**
     * Returns the key used to resolve the provider's binding. That binding can be retrieved from an
     * injector using {@link com.google.inject.Injector#getBinding(Key)
     * Injector.getBinding(providerKey)}
     */
    Key> getProviderKey();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy