org.mule.model
Class DynamicEntryPoint

java.lang.Object
  extended byorg.mule.model.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 be matched for different argument types so it's possible to have multiple entry points on a single component.


Field Summary
protected  String[] ignoreMethods
           
protected static Log logger
          logger used by this class
 
Constructor Summary
DynamicEntryPoint()
           
 
Method Summary
protected  void addMethod(Object component, Method method, Class arg)
           
protected  Method getMethod(Object component, Object arg)
           
 String getMethodName()
           
 Class[] getParameterTypes()
           
 Object invoke(Object component, UMOEventContext context)
           
 boolean isVoid()
           
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


ignoreMethods

protected String[] ignoreMethods
Constructor Detail

DynamicEntryPoint

public DynamicEntryPoint()
Method Detail

getParameterTypes

public Class[] getParameterTypes()
Specified by:
getParameterTypes in interface UMOEntryPoint

invoke

public Object invoke(Object component,
                     UMOEventContext context)
              throws Exception
Specified by:
invoke in interface UMOEntryPoint
Throws:
Exception

validateMethod

protected void validateMethod(Object component,
                              Method method,
                              String methodName)
                       throws Exception
This method can be used to validate that the method exists and is allowed to be executed.

Parameters:
component -
method -
methodName -
Throws:
Exception

getMethod

protected Method getMethod(Object component,
                           Object arg)

addMethod

protected void addMethod(Object component,
                         Method method,
                         Class arg)

isVoid

public boolean isVoid()
Specified by:
isVoid in interface UMOEntryPoint

getMethodName

public String getMethodName()
Specified by:
getMethodName in interface UMOEntryPoint


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.