org.mule.model
Class EntryPoint

java.lang.Object
  extended byorg.mule.model.EntryPoint

public class EntryPoint
extends java.lang.Object

EntryPoint is a method on a Mule-managed component that is invoked when an event for the component is received.

Version:
$Revision: 1.2 $
Author:
Ross Mason

Field Summary
protected static Log logger
          logger used by this class
 
Constructor Summary
EntryPoint(java.lang.reflect.Method method)
          Creates a new EntryPoint with the given method
 
Method Summary
protected  java.lang.reflect.Method getMethod()
           
 java.lang.String getName()
          Gets the method name
 java.lang.Class getParameterType()
          Gets the argument type for the method
 java.lang.Class getReturnType()
          Gets the method return type of the method
 java.lang.Object invoke(java.lang.Object component, java.lang.Object arg)
          Will invoke the entry point method on the given component
 boolean isVoid()
          Determines if the EntryPoint is avoid method or not
protected  void setMethod(java.lang.reflect.Method method)
           
 
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

EntryPoint

public EntryPoint(java.lang.reflect.Method method)
Creates a new EntryPoint with the given method

Parameters:
method - the method to invoke on the component
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object component,
                               java.lang.Object arg)
                        throws java.lang.reflect.InvocationTargetException,
                               java.lang.IllegalAccessException
Will invoke the entry point method on the given component

Parameters:
component - the component to invoke
arg - the argument to pass to the method invocation
Returns:
An object (if any) returned by the invocation
Throws:
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException

isVoid

public boolean isVoid()
Determines if the EntryPoint is avoid method or not

Returns:
true if the method is void

getName

public java.lang.String getName()
Gets the method name

Returns:
the method name

getParameterType

public java.lang.Class getParameterType()
Gets the argument type for the method

Returns:
the argument type. It should never be null

getReturnType

public java.lang.Class getReturnType()
Gets the method return type of the method

Returns:
the return type or null if the method is void

setMethod

protected void setMethod(java.lang.reflect.Method method)

getMethod

protected java.lang.reflect.Method getMethod()


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