org.mule.impl.model.resolvers
Class AnnotatedEntryPointResolver

java.lang.Object
  extended by org.mule.model.resolvers.AbstractEntryPointResolver
      extended by org.mule.impl.model.resolvers.AnnotatedEntryPointResolver
All Implemented Interfaces:
MuleContextAware, EntryPointResolver

public class AnnotatedEntryPointResolver
extends AbstractEntryPointResolver
implements MuleContextAware

A Mule EntryPointResolver implementation that will resolve methods on a service class that has the Entrypoint annotation. It will transform the received message to match the arguments on the annotated method and will honor any parameter annotations such as XPath or Mule annotations.


Field Summary
protected  MuleContext muleContext
           
 
Fields inherited from class org.mule.model.resolvers.AbstractEntryPointResolver
logger, methodCache
 
Constructor Summary
AnnotatedEntryPointResolver()
           
 
Method Summary
protected  Method getMethodByName(String name, Object object)
           
protected  Object[] getPayloadForMethod(Method method, Object component, MuleEventContext context)
           
protected  Object[] getPayloadFromMessageWithAnnotations(Method method, MuleEventContext context)
           
protected  void initCache(Object component, MuleEventContext context)
           
 InvocationResult invoke(Object component, MuleEventContext context)
           
 void setMuleContext(MuleContext muleContext)
           
 String toString()
           
 
Methods inherited from class org.mule.model.resolvers.AbstractEntryPointResolver
addMethodByArguments, addMethodByName, getCacheKeyForPayload, getMethodByArguments, getMethodByName, getPayloadFromMessage, invokeMethod, isAcceptVoidMethods, isSynchronizeCall, isTransformFirst, setAcceptVoidMethods, setSynchronizeCall, setTransformFirst
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

muleContext

protected MuleContext muleContext
Constructor Detail

AnnotatedEntryPointResolver

public AnnotatedEntryPointResolver()
Method Detail

setMuleContext

public void setMuleContext(MuleContext muleContext)
Specified by:
setMuleContext in interface MuleContextAware

invoke

public InvocationResult invoke(Object component,
                               MuleEventContext context)
                        throws Exception
Specified by:
invoke in interface EntryPointResolver
Throws:
Exception

getPayloadForMethod

protected Object[] getPayloadForMethod(Method method,
                                       Object component,
                                       MuleEventContext context)
                                throws TransformerException,
                                       InitialisationException
Throws:
TransformerException
InitialisationException

getPayloadFromMessageWithAnnotations

protected Object[] getPayloadFromMessageWithAnnotations(Method method,
                                                        MuleEventContext context)
                                                 throws TransformerException,
                                                        InitialisationException
Throws:
TransformerException
InitialisationException

toString

public String toString()
Overrides:
toString in class AbstractEntryPointResolver

initCache

protected void initCache(Object component,
                         MuleEventContext context)

getMethodByName

protected Method getMethodByName(String name,
                                 Object object)


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.