- All Known Implementing Classes:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ConstructorResolver
A constructor resolver attempts to locate a constructor and returns a ConstructorExecutor that can be used to invoke that constructor. The ConstructorExecutor will be cached but if it 'goes stale' the resolvers will be called again.
- Andy Clement
resolve@Nullable ConstructorExecutor resolve
(EvaluationContext context, String typeName, List<TypeDescriptor> argumentTypes) throws AccessExceptionWithin the supplied context determine a suitable constructor on the supplied type that can handle the specified arguments. Return a ConstructorExecutor that can be used to invoke that constructor (or
nullif no constructor could be found).
context- the current evaluation context
typeName- the type upon which to look for the constructor
argumentTypes- the arguments that the constructor must be able to handle
- a ConstructorExecutor that can invoke the constructor, or null if non found