@FunctionalInterface public interface ConstructorResolver
| 限定符和类型 | 方法和说明 |
|---|---|
ConstructorExecutor |
resolve(EvaluationContext context,
String typeName,
List<org.springframework.core.convert.TypeDescriptor> argumentTypes)
Within the supplied context determine a suitable constructor on the supplied type
that can handle the specified arguments.
|
@Nullable ConstructorExecutor resolve(EvaluationContext context, String typeName, List<org.springframework.core.convert.TypeDescriptor> argumentTypes) throws AccessException
null if no constructor could be found).context - the current evaluation contexttypeName - the type upon which to look for the constructorargumentTypes - the arguments that the constructor must be able to handleAccessException