Package org.apache.maven.di
Interface Injector
- All Known Implementing Classes:
InjectorImpl
public interface Injector
-
Method Summary
Modifier and TypeMethodDescriptionbindImplicit
(Class<?> cls) <T> Injector
bindInstance
(Class<T> cls, T instance) bindScope
(Class<? extends Annotation> scopeAnnotation, Supplier<Scope> scope) bindScope
(Class<? extends Annotation> scopeAnnotation, Scope scope) static Injector
create()
discover
(ClassLoader classLoader) <T> T
getInstance
(Class<T> key) <T> T
getInstance
(Key<T> key) <T> void
injectInstance
(T instance)
-
Method Details
-
create
-
discover
-
bindScope
-
bindScope
-
bindImplicit
-
bindInstance
-
injectInstance
<T> void injectInstance(T instance) -
getInstance
-
getInstance
-