Class ReflectiveConstructorExecutor
java.lang.Object
org.springframework.expression.spel.support.ReflectiveConstructorExecutor
- All Implemented Interfaces:
ConstructorExecutor
A simple ConstructorExecutor implementation that runs a constructor using reflective
invocation.
- Since:
- 3.0
- Author:
- Andy Clement, Juergen Hoeller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(EvaluationContext context, Object... arguments) Execute a constructor in the specified context using the specified arguments.Constructor<?>
-
Constructor Details
-
ReflectiveConstructorExecutor
-
-
Method Details
-
execute
Description copied from interface:ConstructorExecutorExecute a constructor in the specified context using the specified arguments.- Specified by:
executein interfaceConstructorExecutor- Parameters:
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- Returns:
- the new object
- Throws:
AccessException- if there is a problem executing the command or the CommandExecutor is no longer valid
-
getConstructor
-