Package aQute.lib.inject
Class Injector<T extends Annotation>
java.lang.Object
aQute.lib.inject.Injector<T>
- Type Parameters:
T
- the annotation type
This class is a simple injector with a parameterized annotation. A domain
function is provided to retrieve the values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The Target class describes the target injection point. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Injector
public Injector(Converter converter, Function<Injector.Target<T>, Object> domain, Class<T> annotation) Create a new Injector- Parameters:
converter
- the converter to use for conversionsdomain
- the domain function that retrieves valuesannotation
- the annotation that triggers a call to the domain
-
Injector
Create a new Injector with a default converter- Parameters:
domain
- the domain function that retrieves valuesannotation
- the annotation that triggers a call to the domain
-
-
Method Details