org.mule.model.resolvers
Class MethodHeaderPropertyEntryPointResolver
java.lang.Object
org.mule.model.resolvers.AbstractEntryPointResolver
org.mule.model.resolvers.MethodHeaderPropertyEntryPointResolver
- All Implemented Interfaces:
- EntryPointResolver
public class MethodHeaderPropertyEntryPointResolver
- extends AbstractEntryPointResolver
This resolver will look for a 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
Methods inherited from class org.mule.model.resolvers.AbstractEntryPointResolver |
addMethodByArguments, addMethodByName, getCacheKeyForPayload, getMethodByArguments, getMethodByName, getMethodCache, getPayloadFromMessage, invokeMethod, isAcceptVoidMethods, isSynchronizeCall, setAcceptVoidMethods, setSynchronizeCall |
MethodHeaderPropertyEntryPointResolver
public MethodHeaderPropertyEntryPointResolver()
getMethodProperty
public String getMethodProperty()
setMethodProperty
public void setMethodProperty(String methodProperty)
invoke
public InvocationResult invoke(Object component,
MuleEventContext context)
throws Exception
- Throws:
Exception
validateMethod
protected void validateMethod(Object component,
Method method)
throws NoSuchMethodException
- This method can be used to validate that the method exists and is allowed to
be executed.
- Parameters:
component
- the service component being invokedmethod
- the method to invoke on the component
- Throws:
NoSuchMethodException
- if the method does not exist on the component
toString
public String toString()
- Overrides:
toString
in class AbstractEntryPointResolver
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.