| java.lang.Object org.mule.model.resolvers.AbstractEntryPointResolver org.mule.model.resolvers.ReflectionEntryPointResolver
All known Subclasses: org.mule.model.resolvers.AbstractArgumentEntryPointResolver,
ReflectionEntryPointResolver | public class ReflectionEntryPointResolver extends AbstractEntryPointResolver (Code) | | ReflectEntryPointResolver is used to determine the entry point on a service
after an event has been received for it. The entrypoint is discovered using
the event payload type(s) as the argument using reflection. An entry point will try and match for
different argument types, so it's possible to have multiple entry points on a
single service.
For multiple parameters the payload of context.getMessage().getPayload() should be an Array of objects.
If the message payload is of type
org.mule.transport.NullPayload the resolver will look for a no-argument
method to call that doesn't match the set of ignoredMethods on the resolver.
Also a set of 'ignored' methods are available (and the use can add others) to tell the resolver to not
resolve to these methods. The default ones are:
Note that wildcard expressions can be used.
|
ReflectionEntryPointResolver | public ReflectionEntryPointResolver()(Code) | | |
addIgnoredMethod | public void addIgnoredMethod(String name)(Code) | | |
invoke | public InvocationResult invoke(Object component, MuleEventContext context) throws Exception(Code) | | Will discover the entrypoint on the service using the payload type to figure out the method to call.
For multiple parameters the payload of context.getMessage().geTPayload() should be an Array of objects.
If the message payload is of type
org.mule.transport.NullPayload the resolver will look for a no-argument
method to call that doesn't match the set of ignoredMethods on the resover.
Parameters: service - Parameters: context - throws: Exception - |
removeIgnoredMethod | public boolean removeIgnoredMethod(String name)(Code) | | |
Fields inherited from org.mule.model.resolvers.AbstractEntryPointResolver | final protected transient Log logger(Code)(Java Doc) final protected ConcurrentHashMap methodCache(Code)(Java Doc)
|
|
|