类 ReflectiveConstructorResolver
java.lang.Object
cn.taketoday.expression.spel.support.ReflectiveConstructorResolver
- 所有已实现的接口:
ConstructorResolver
A constructor resolver that uses reflection to locate the constructor that should be invoked.
- 从以下版本开始:
- 4.0
- 作者:
- Andy Clement, Juergen Hoeller
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明resolve(EvaluationContext context, String typeName, List<TypeDescriptor> argumentTypes) Locate a constructor on the type.
-
构造器详细资料
-
ReflectiveConstructorResolver
public ReflectiveConstructorResolver()
-
-
方法详细资料
-
resolve
@Nullable public ConstructorExecutor resolve(EvaluationContext context, String typeName, List<TypeDescriptor> argumentTypes) throws AccessException Locate a constructor on the type. There are three kinds of match that might occur:- An exact match where the types of the arguments match the types of the constructor
- An in-exact match where the types we are looking for are subtypes of those defined on the constructor
- A match where we are able to convert the arguments into those expected by the constructor, according to the registered type converter.
- 指定者:
resolve在接口中ConstructorResolver- 参数:
context- the current evaluation contexttypeName- the fully-qualified name of the type upon which to look for the constructorargumentTypes- the types of arguments that the constructor must be able to handle- 返回:
- a
ConstructorExecutorthat can invoke the constructor, ornullif the constructor cannot be found - 抛出:
AccessException
-