org.mule.impl.model.resolvers
Class DynamicEntryPoint
java.lang.Object
org.mule.impl.model.resolvers.DynamicEntryPoint
- All Implemented Interfaces:
- UMOEntryPoint
public class DynamicEntryPoint
- extends Object
- implements UMOEntryPoint
DynamicEntryPoint
is used to detemine the entry point on a bean
after an event has been received for it. The entrypoint is then discovered using
the event payload type as the argument. An entry point will try and match for
different argument types, so it's possible to have multiple entry points on a
single component.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final Log logger
- logger used by this class
IgnoredMethodNames
protected static final Set IgnoredMethodNames
DynamicEntryPoint
public DynamicEntryPoint()
addMethodByArgumentType
protected Method addMethodByArgumentType(Method method,
String payloadClass)
addMethodByName
protected Method addMethodByName(Method method,
String payloadClass)
getMethodByArgumentType
protected Method getMethodByArgumentType(String argumentType)
getMethodByName
protected Method getMethodByName(String methodName,
String argumentType)
invoke
public Object invoke(Object component,
UMOEventContext context)
throws Exception
- Specified by:
invoke
in interface UMOEntryPoint
- Throws:
Exception
invokeMethod
protected Object invokeMethod(Object component,
Method method,
Object argument)
throws InvocationTargetException,
IllegalAccessException
- This method will actually invoke the given method on the given component.
- Throws:
InvocationTargetException
IllegalAccessException
validateMethod
protected void validateMethod(Object component,
Method method,
String methodName)
throws NoSuchMethodException
- This method can be used to validate that the method exists and is allowed to
be executed.
- Throws:
NoSuchMethodException
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.