org.mule.impl.model.resolvers
Class DynamicEntryPointResolver
java.lang.Object
org.mule.impl.model.resolvers.DynamicEntryPointResolver
- All Implemented Interfaces:
- UMOEntryPointResolver
- Direct Known Subclasses:
- TestEntryPointResolver
public class DynamicEntryPointResolver
- extends Object
- implements UMOEntryPointResolver
DynamicEntryPointResolver
- Checks to see if the component implements the Callable lifecycle interface,
then the onCall(UMOEventContext) method will be used to receive the event.
- 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.
- 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.
- 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.
- 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicEntryPointResolver
public DynamicEntryPointResolver()
- Default Constructor
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.