org.mule.model.resolvers
Class DefaultEntryPointResolverSet

java.lang.Object
  extended by org.mule.model.resolvers.DefaultEntryPointResolverSet
All Implemented Interfaces:
EntryPointResolverSet
Direct Known Subclasses:
LegacyEntryPointResolverSet

public class DefaultEntryPointResolverSet
extends java.lang.Object
implements EntryPointResolverSet

Provides the default implementation of an EntryPointResolverSet It resolves a method to call on the given service when an event is received. This object maintains a set of Resolvers that will be used in order to resolve an entrypoint on a service object until one is found or until the set is exhausted.


Field Summary
protected  Log logger
           
 
Constructor Summary
DefaultEntryPointResolverSet()
           
 
Method Summary
 void addEntryPointResolver(EntryPointResolver resolver)
          Will add a resolver to the list of resolvers to invoke on a compoent.
 java.util.Set<EntryPointResolver> getEntryPointResolvers()
           
 java.lang.Object invoke(java.lang.Object component, MuleEventContext context)
          Will attempt to invoke the component by looping through all EntryPointResolver instances registered on this set until a match is found
 boolean removeEntryPointResolver(EntryPointResolver resolver)
          Removes a resolver from the list
 void setEntryPointResolvers(java.util.Set<EntryPointResolver> entryPointResolvers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Log logger
Constructor Detail

DefaultEntryPointResolverSet

public DefaultEntryPointResolverSet()
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object component,
                               MuleEventContext context)
                        throws java.lang.Exception
Description copied from interface: EntryPointResolverSet
Will attempt to invoke the component by looping through all EntryPointResolver instances registered on this set until a match is found

Specified by:
invoke in interface EntryPointResolverSet
Parameters:
component - the component to invoke
context - the current event context, this is used to figure out which method to call on the component
Returns:
the result of the invocation
Throws:
java.lang.Exception - if the invocation itself or an EntryPointResolver fails

getEntryPointResolvers

public java.util.Set<EntryPointResolver> getEntryPointResolvers()

setEntryPointResolvers

public void setEntryPointResolvers(java.util.Set<EntryPointResolver> entryPointResolvers)

addEntryPointResolver

public void addEntryPointResolver(EntryPointResolver resolver)
Description copied from interface: EntryPointResolverSet
Will add a resolver to the list of resolvers to invoke on a compoent. Implementations must maintain an ordered list of resolvers

Specified by:
addEntryPointResolver in interface EntryPointResolverSet
Parameters:
resolver - the resolver to add

removeEntryPointResolver

public boolean removeEntryPointResolver(EntryPointResolver resolver)
Description copied from interface: EntryPointResolverSet
Removes a resolver from the list

Specified by:
removeEntryPointResolver in interface EntryPointResolverSet
Parameters:
resolver - the resolver to remove
Returns:
true if the resolver was found and removed from the list


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