public interface ConstructorExecutor
They can become stale, and in that case should throw an AccessException - this will cause the infrastructure to go back to the resolvers to ask for a new one.
Modifier and Type | Method and Description |
---|---|
TypedValue |
execute(EvaluationContext context,
Object... arguments)
Execute a constructor in the specified context using the specified arguments.
|
TypedValue execute(EvaluationContext context, Object... arguments) throws AccessException
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 runAccessException
- if there is a problem executing the command or the
CommandExecutor is no longer valid