org.mule.model
Class DynamicEntryPoint

java.lang.Object
  extended byorg.mule.model.DynamicEntryPoint
All Implemented Interfaces:
UMOEntryPoint

public class DynamicEntryPoint
extends java.lang.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.

Version:
$Revision: 1.2 $
Author:
Ross Mason

Field Summary
protected static Log logger
          logger used by this class
 
Constructor Summary
DynamicEntryPoint()
           
 
Method Summary
protected  void addMethod(java.lang.Object component, java.lang.reflect.Method method, java.lang.Class arg)
           
protected  java.lang.reflect.Method getMethod(java.lang.Object component, java.lang.Object arg)
           
 java.lang.String getMethodName()
           
 java.lang.Class getParameterType()
           
 java.lang.Object invoke(java.lang.Object component, UMOEventContext context, java.lang.reflect.Method method)
           
 boolean isVoid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static transient Log logger
logger used by this class

Constructor Detail

DynamicEntryPoint

public DynamicEntryPoint()
Method Detail

getParameterType

public java.lang.Class getParameterType()
Specified by:
getParameterType in interface UMOEntryPoint

invoke

public java.lang.Object invoke(java.lang.Object component,
                               UMOEventContext context,
                               java.lang.reflect.Method method)
                        throws java.lang.reflect.InvocationTargetException,
                               java.lang.IllegalAccessException,
                               TransformerException
Specified by:
invoke in interface UMOEntryPoint
Throws:
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
TransformerException

getMethod

protected java.lang.reflect.Method getMethod(java.lang.Object component,
                                             java.lang.Object arg)

addMethod

protected void addMethod(java.lang.Object component,
                         java.lang.reflect.Method method,
                         java.lang.Class arg)

isVoid

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

getMethodName

public java.lang.String getMethodName()
Specified by:
getMethodName in interface UMOEntryPoint


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.