Package org.apache.maven.di.impl
Class InjectorImpl
java.lang.Object
org.apache.maven.di.impl.InjectorImpl
- All Implemented Interfaces:
Injector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <U> Injector
bindImplicit
(Class<?> clazz) <U> Injector
bindInstance
(Class<U> clazz, U instance) bindScope
(Class<? extends Annotation> scopeAnnotation, Supplier<Scope> scope) bindScope
(Class<? extends Annotation> scopeAnnotation, Scope scope) protected <Q> Supplier<Q>
discover
(ClassLoader classLoader) protected void
doBindImplicit
(Key<?> key, Binding<?> binding) getBindings
(Key<T> key) <Q> Supplier<Q>
getCompiledBinding
(Dependency<Q> dep) <T> T
getInstance
(Class<T> key) <T> T
getInstance
(Key<T> key) <T> void
injectInstance
(T instance) protected <Q,
T> List<Q> protected <K,
V, T> Map<K, V>
-
Constructor Details
-
InjectorImpl
public InjectorImpl()
-
-
Method Details
-
getInstance
- Specified by:
getInstance
in interfaceInjector
-
getInstance
- Specified by:
getInstance
in interfaceInjector
-
injectInstance
public <T> void injectInstance(T instance) - Specified by:
injectInstance
in interfaceInjector
-
discover
-
bindScope
-
bindScope
-
bindInstance
- Specified by:
bindInstance
in interfaceInjector
-
bindImplicit
- Specified by:
bindImplicit
in interfaceInjector
-
bind
-
getBindings
-
getBoundKeys
-
getBindings
-
getCompiledBinding
-
compile
-
doBindImplicit
-
map
-
list
-