Package org.apache.maven.di.impl
Class Binding<T>
java.lang.Object
org.apache.maven.di.impl.Binding<T>
- Direct Known Subclasses:
Binding.BindingToConstructor
,Binding.BindingToInstance
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static interface
-
Constructor Summary
ModifierConstructorDescriptionprotected
Binding
(Key<?> originalKey, Set<Dependency<?>> dependencies, Annotation scope, int priority) protected
Binding
(Key<? extends T> originalKey, Set<Dependency<?>> dependencies) -
Method Summary
Modifier and TypeMethodDescriptioncompile
(Function<Dependency<?>, Supplier<?>> compiler) Set
<Dependency<?>> Key
<?> int
getScope()
initializeWith
(BindingInitializer<T> bindingInitializer) prioritize
(int priority) scope
(Annotation scope) static <R> Binding
<R> to
(Key<R> originalKey, Binding.TupleConstructorN<R> constructor, Class<?>[] types) static <R> Binding
<R> to
(Key<R> originalKey, Binding.TupleConstructorN<R> constructor, Dependency<?>[] dependencies) static <R> Binding
<R> to
(Key<R> originalKey, Binding.TupleConstructorN<R> constructor, Dependency<?>[] dependencies, int priority) static <T> Binding
<T> toInstance
(T instance) toString()
-
Constructor Details
-
Binding
-
Binding
protected Binding(Key<?> originalKey, Set<Dependency<?>> dependencies, Annotation scope, int priority)
-
-
Method Details
-
toInstance
-
to
public static <R> Binding<R> to(Key<R> originalKey, Binding.TupleConstructorN<R> constructor, Class<?>[] types) -
to
public static <R> Binding<R> to(Key<R> originalKey, Binding.TupleConstructorN<R> constructor, Dependency<?>[] dependencies) -
to
public static <R> Binding<R> to(Key<R> originalKey, Binding.TupleConstructorN<R> constructor, Dependency<?>[] dependencies, int priority) -
scope
-
prioritize
-
withKey
-
initializeWith
-
compile
-
getDependencies
-
getScope
-
getDisplayString
-
getOriginalKey
-
getPriority
public int getPriority() -
toString
-