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 'method' 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, getPayloadFromMessage, invokeMethod, isAcceptVoidMethods, isTransformFirst, setAcceptVoidMethods, setTransformFirst |
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.
- Throws:
NoSuchMethodException
toString
public String toString()
- Overrides:
toString
in class AbstractEntryPointResolver
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.