public static interface Instantiator.AvailableParameters
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Class<?> type,
java.util.function.Function<java.lang.Class<?>,java.lang.Object> factory)
Add a parameter with an instance factory.
|
void |
add(java.lang.Class<?> type,
java.lang.Object instance)
Add a parameter with an instance value.
|
void add(java.lang.Class<?> type, java.lang.Object instance)
type
- the parameter typeinstance
- the instance that should be injectedvoid add(java.lang.Class<?> type, java.util.function.Function<java.lang.Class<?>,java.lang.Object> factory)
type
- the parameter typefactory
- the factory used to create the instance that should be injected