public class MethodHeaderPropertyEntryPointResolver extends AbstractEntryPointResolver
MuleProperties.MULE_METHOD_PROPERTY
property on the incoming event to determine which method to invoke Users can customise the name
of the property used to look up the method name on the event| Constructor and Description |
|---|
MethodHeaderPropertyEntryPointResolver() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMethodProperty() |
InvocationResult |
invoke(Object component,
MuleEventContext context) |
void |
setMethodProperty(String methodProperty) |
String |
toString() |
protected void |
validateMethod(Object component,
Method method)
This method can be used to validate that the method exists and is allowed to
be executed.
|
addMethodByArguments, addMethodByName, getCacheKeyForPayload, getMethodByArguments, getMethodByName, getMethodCache, getPayloadFromMessage, invokeMethod, isAcceptVoidMethods, isSynchronizeCall, setAcceptVoidMethods, setSynchronizeCallpublic MethodHeaderPropertyEntryPointResolver()
public String getMethodProperty()
public void setMethodProperty(String methodProperty)
public InvocationResult invoke(Object component, MuleEventContext context) throws Exception
Exceptionprotected void validateMethod(Object component, Method method) throws NoSuchMethodException
component - the service component being invokedmethod - the method to invoke on the componentNoSuchMethodException - if the method does not exist on the componentpublic String toString()
toString in class AbstractEntryPointResolverCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.