ConstructorExecutor is built by a ConstructorResolver and
can be cached by the infrastructure to repeat an operation quickly without
going back to the resolvers.
For example, the particular constructor to execute on a class may be discovered
by a ConstructorResolver which then builds a ConstructorExecutor
that executes that constructor, and the resolved ConstructorExecutor
can be reused without needing to go back to the resolvers to discover the
constructor again.
If a ConstructorExecutor becomes stale, it should throw an
AccessException which signals to the infrastructure to go back to the
resolvers to ask for a new one.
ConstructorResolver, MethodExecutor
| Modifier and Type | Method and Description |
|---|---|
| public TypedValue | Returns: the new objectthe evaluation context in which the constructor is being executed context, Object... the arguments to the constructor; should match (in terms
of number and type) whatever the constructor will need to run arguments)Execute a constructor in the specified context using the specified arguments. |
| execute | back to summary |
|---|---|
| public TypedValue execute(EvaluationContext context, Object... arguments) throws AccessException Execute a constructor in the specified context using the specified arguments.
| |