public class DefaultEntryPointResolverSet extends Object implements EntryPointResolverSet
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.Constructor and Description |
---|
DefaultEntryPointResolverSet() |
Modifier and Type | Method and Description |
---|---|
void |
addEntryPointResolver(EntryPointResolver resolver)
Will add a resolver to the list of resolvers to invoke on a compoent.
|
Set<EntryPointResolver> |
getEntryPointResolvers() |
Object |
invoke(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(Set<EntryPointResolver> entryPointResolvers) |
public Object invoke(Object component, MuleEventContext context) throws Exception
EntryPointResolverSet
EntryPointResolver
instances registered on this set until
a match is foundinvoke
in interface EntryPointResolverSet
component
- the component to invokecontext
- the current event context, this is used to figure out which method to call on the componentException
- if the invocation itself or an EntryPointResolver
failspublic Set<EntryPointResolver> getEntryPointResolvers()
public void setEntryPointResolvers(Set<EntryPointResolver> entryPointResolvers)
public void addEntryPointResolver(EntryPointResolver resolver)
EntryPointResolverSet
addEntryPointResolver
in interface EntryPointResolverSet
resolver
- the resolver to addpublic boolean removeEntryPointResolver(EntryPointResolver resolver)
EntryPointResolverSet
removeEntryPointResolver
in interface EntryPointResolverSet
resolver
- the resolver to removeCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.