public class MethodExecutorGenerator extends Object
MethodExecutor classes that invoke a given method.| Constructor and Description |
|---|
MethodExecutorGenerator() |
| Modifier and Type | Method and Description |
|---|---|
MethodExecutor |
generate(Object targetInstance,
Method method,
ArgumentResolverDelegate argumentResolverDelegate)
Instantiates a dynamic
MethodExecutor that executes the given method. |
MethodExecutor |
generate(Object targetInstance,
Method method,
ArgumentResolverDelegate argumentResolverDelegate,
File generatedByteCodeFile)
Instantiates a dynamic
MethodExecutor that executes the given method. |
void |
setArtifactId(String artifactId) |
void |
setContext(MuleContext context) |
public MethodExecutor generate(Object targetInstance, Method method, ArgumentResolverDelegate argumentResolverDelegate)
MethodExecutor that executes the given method.
Each invocation to this method will return a new and unique MethodExecutor instances. However, all invocations
pointing to the same method will return instances of the same dynamically generated class.
targetInstance - the instance on which the method is to be executedmethod - the method to be invokedargumentResolverDelegate - the ArgumentResolverDelegate that provides the resolversMethodExecutorException - if the instance cannot be generatedpublic MethodExecutor generate(Object targetInstance, Method method, ArgumentResolverDelegate argumentResolverDelegate, File generatedByteCodeFile)
MethodExecutor that executes the given method.
Each invocation to this method will return a new and unique MethodExecutor instances. However, all invocations
pointing to the same method will return instances of the same dynamically generated class.
targetInstance - the instance on which the method is to be executedmethod - the method to be invokedargumentResolverDelegate - the ArgumentResolverDelegate that provides the resolversgeneratedByteCodeFile - a File in which the generated bytecode is to be stored. Has no use other than
debuggingMethodExecutorException - if the instance cannot be generated@Inject public void setContext(MuleContext context)
public void setArtifactId(String artifactId)
Copyright © 2003–2025 MuleSoft, Inc.. All rights reserved.