Interface FieldInitializer.ConstructorArgumentResolver
-
- All Known Implementing Classes:
ConstructorInjection.SimpleArgumentResolver
- Enclosing class:
- FieldInitializer
public static interface FieldInitializer.ConstructorArgumentResolverRepresents the strategy used to resolve actual instances to be given to a constructor given the argument types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object[]resolveTypeInstances(java.lang.Class<?>... argTypes)Try to resolve instances from types.
-
-
-
Method Detail
-
resolveTypeInstances
java.lang.Object[] resolveTypeInstances(java.lang.Class<?>... argTypes)
Try to resolve instances from types.Checks on the real argument type or on the correct argument number will happen during the field initialization
FieldInitializer.initialize(). I.e the only responsibility of this method, is to provide instances if possible.- Parameters:
argTypes- Constructor argument types, should not be null.- Returns:
- The argument instances to be given to the constructor, should not be null.
-
-