org.mule.impl.model.resolvers
Class DynamicEntryPointResolver

java.lang.Object
  extended byorg.mule.impl.model.resolvers.DynamicEntryPointResolver
All Implemented Interfaces:
UMOEntryPointResolver
Direct Known Subclasses:
TestEntryPointResolver

public class DynamicEntryPointResolver
extends Object
implements UMOEntryPointResolver

DynamicEntryPointResolver

  1. Checks to see if the component implements the Callable lifecycle interface, then the onCall(UMOEventContext) method will be used to receive the event.
  2. If the component has a transformer configured for it, the return type for the transformer will be matched against methods on the component to see if there is a method that accepts the transformer return type. If so this event will be used. Note if there is more than one match, an exception will be thrown.
  3. If there is a method on the component that accepts an org.mule.umo.UMOEventContext . If so this event will be used. Note if there is more than one match, an exception will be thrown.
  4. The last chack determines if there are any meothds on the component that accept a java.util.Event . If so this event will be used. Note if there is more than one match, an exception will be thrown.
  5. If none of the above find a match an exception will be thrown and the component registration will fail.
It allows also void methods where Mule assumes that the Payload itself of the message will be modified.


Constructor Summary
DynamicEntryPointResolver()
          Default Constructor
 
Method Summary
protected  boolean isVoidOk()
          Determinse if a void Entrypoint can be accepted.
 UMOEntryPoint resolveEntryPoint(UMODescriptor descriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicEntryPointResolver

public DynamicEntryPointResolver()
Default Constructor

Method Detail

isVoidOk

protected boolean isVoidOk()
Determinse if a void Entrypoint can be accepted. This will always return true for this implementation

Returns:
true

resolveEntryPoint

public UMOEntryPoint resolveEntryPoint(UMODescriptor descriptor)
                                throws ModelException
Specified by:
resolveEntryPoint in interface UMOEntryPointResolver
Throws:
ModelException


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