public interface EntryPointResolverSet
EntryPointResolver
resolves a method to call on the given
service object 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.
Note that there is a one-to-one mapping from component to EntryPointResolverSet. Each component must get a separate set
with EntryPointResolver
instances that are not shared. An EntryPointResolver is allowed to cache state
and can assume the component will always be of the the same type.Modifier and Type | Method and Description |
---|---|
void |
addEntryPointResolver(EntryPointResolver resolver)
Will add a resolver to the list of resolvers to invoke on a compoent.
|
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
|
Object invoke(Object component, MuleEventContext context) throws Exception
EntryPointResolver
instances registered on this set until
a match is foundcomponent
- 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
failsvoid addEntryPointResolver(EntryPointResolver resolver)
resolver
- the resolver to addboolean removeEntryPointResolver(EntryPointResolver resolver)
resolver
- the resolver to removeCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.