org.mule.impl.model.resolvers
Class DynamicEntryPoint

java.lang.Object
  extended by 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.


Field Summary
protected static Set IgnoredMethodNames
           
protected static Log logger
          logger used by this class
 
Constructor Summary
DynamicEntryPoint()
           
 
Method Summary
protected  Method addMethodByArgumentType(Method method, String payloadClass)
           
protected  Method addMethodByName(Method method, String payloadClass)
           
protected  Method getMethodByArgumentType(String argumentType)
           
protected  Method getMethodByName(String methodName, String argumentType)
           
 Object invoke(Object component, UMOEventContext context)
           
protected  Object invokeMethod(Object component, Method method, Object argument)
          This method will actually invoke the given method on the given component.
protected  void validateMethod(Object component, Method method, String methodName)
          This method can be used to validate that the method exists and is allowed to be executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final Log logger
logger used by this class


IgnoredMethodNames

protected static final Set IgnoredMethodNames
Constructor Detail

DynamicEntryPoint

public DynamicEntryPoint()
Method Detail

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.