类 ReflectiveConstructorExecutor
- java.lang.Object
- org.springframework.expression.spel.support.ReflectiveConstructorExecutor
- 所有已实现的接口:
ConstructorExecutor
public class ReflectiveConstructorExecutor extends Object implements ConstructorExecutor
A simple ConstructorExecutor implementation that runs a constructor using reflective invocation.- 从以下版本开始:
- 3.0
- 作者:
- Andy Clement, Juergen Hoeller
构造器概要
构造器 构造器 说明 ReflectiveConstructorExecutor(Constructor<?> ctor)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 TypedValue
execute(EvaluationContext context, Object... arguments)
Execute a constructor in the specified context using the specified arguments.Constructor<?>
getConstructor()
构造器详细资料
ReflectiveConstructorExecutor
public ReflectiveConstructorExecutor(Constructor<?> ctor)
方法详细资料
execute
public TypedValue execute(EvaluationContext context, Object... arguments) throws AccessException
从接口复制的说明:ConstructorExecutor
Execute a constructor in the specified context using the specified arguments.- 指定者:
execute
在接口中ConstructorExecutor
- 参数:
context
- the evaluation context in which the command is being executedarguments
- the arguments to the constructor call, should match (in terms of number and type) whatever the command will need to run- 返回:
- the new object
- 抛出:
AccessException
- if there is a problem executing the command or the CommandExecutor is no longer valid
getConstructor
public Constructor<?> getConstructor()