org.mule.impl.model.resolvers
Class EntryPoint

java.lang.Object
  extended by org.mule.impl.model.resolvers.EntryPoint

public class EntryPoint
extends Object

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


Field Summary
protected static Log logger
          logger used by this class
 
Constructor Summary
EntryPoint(Method method)
          Creates a new EntryPoint with the given method
 
Method Summary
protected  Method getMethod()
           
 String getName()
          Gets the method name
 Class getParameterType()
          Gets the argument type for the method
 Class getReturnType()
          Gets the method return type of the method
 Object invoke(Object component, 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(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 final Log logger
logger used by this class

Constructor Detail

EntryPoint

public EntryPoint(Method method)
Creates a new EntryPoint with the given method

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

invoke

public Object invoke(Object component,
                     Object arg)
              throws InvocationTargetException,
                     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:
InvocationTargetException
IllegalAccessException

isVoid

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

Returns:
true if the method is void

getName

public String getName()
Gets the method name

Returns:
the method name

getParameterType

public Class getParameterType()
Gets the argument type for the method

Returns:
the argument type. It should never be null

getReturnType

public 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(Method method)

getMethod

protected Method getMethod()


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.