Package org.int4.dirk.core.definition
Interface InjectionTarget
-
public interface InjectionTargetRepresents a target, like a field or parameter, that can be injected.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BindinggetBinding()Returns theBindingfor this target.KeygetElementKey()Returns theKeyof which individual elements of the injection target consist.<T> Instantiator<T>getInstantiator()Returns theInstantiatorfor this target.ResolutiongetResolution()Returns how the binding should be resolved.
-
-
-
Method Detail
-
getInstantiator
<T> Instantiator<T> getInstantiator()
Returns theInstantiatorfor this target.- Type Parameters:
T- the type instantiated- Returns:
- an
Instantiator, nevernull
-
getElementKey
Key getElementKey()
Returns theKeyof which individual elements of the injection target consist. For simple types, this will be the same as the injection target's type. For types which are provided by an injection target extension, this will be the base type that is looked up for injection.- Returns:
- a
Key, nevernull
-
getResolution
Resolution getResolution()
Returns how the binding should be resolved.- Returns:
- a
Resolution, nevernull
-
-