类 ReflectiveConstructorExecutor

java.lang.Object
cn.taketoday.expression.spel.support.ReflectiveConstructorExecutor
所有已实现的接口:
ConstructorExecutor

public class ReflectiveConstructorExecutor extends Object implements ConstructorExecutor
A simple ConstructorExecutor implementation that runs a constructor using reflective invocation.
从以下版本开始:
4.0
作者:
Andy Clement, Juergen Hoeller
  • 构造器详细资料

    • 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 executed
      arguments - 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()