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();
}