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

de.leanovate.pragmatic.ioc.Injector Maven / Gradle / Ivy

The newest version!
package de.leanovate.pragmatic.ioc;

/**
 * Generic injector for a type.
 *
 * @param  the type to be injected
 */
public interface Injector {
    /**
     * Inject a concrete instance.
     *
     * @return the instance to inject
     */
    T inject();

    /**
     * Get the scope of this injector.
     *
     * @return the scope of injection
     */
    Scope getScope();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy