public abstract class AbstractArgumentEntryPointResolver extends ReflectionEntryPointResolver
NoArgumentsEntryPointResolver, that allows methods with
no arguments to be invoked and ArrayEntryPointResolver that allows for methods
that accept an array type to be invoked.
Users can set explicit method names on this resolver to control which methods are allowed to be called. 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.filter| Constructor and Description |
|---|
AbstractArgumentEntryPointResolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMethod(String name) |
protected abstract Class<?>[] |
getMethodArgumentTypes(Object[] payload) |
Set<String> |
getMethods() |
InvocationResult |
invoke(Object component,
MuleEventContext context,
Event.Builder eventBuilder)
Will discover the entrypoint on the service using the payload type to figure out the method to call.
|
boolean |
isEnableDiscovery() |
boolean |
removeMethod(String name) |
void |
setEnableDiscovery(boolean enableDiscovery) |
void |
setMethods(Set<String> methods) |
String |
toString() |
addIgnoredMethod, getIgnoredMethods, removeIgnoredMethod, setIgnoredMethodsaddMethodByArguments, addMethodByName, getCacheKeyForPayload, getMethodByArguments, getMethodByName, getMethodCache, getPayloadFromMessage, invokeMethod, isAcceptVoidMethods, isSynchronizeCall, setAcceptVoidMethods, setSynchronizeCallpublic void addMethod(String name)
public boolean removeMethod(String name)
public boolean isEnableDiscovery()
public void setEnableDiscovery(boolean enableDiscovery)
public InvocationResult invoke(Object component, MuleEventContext context, Event.Builder eventBuilder) throws Exception
ReflectionEntryPointResolverorg.mule.runtime.api.message.NullPayload the resolver will look for a no-argument method to call that doesn't match
the set of ignoredMethods on the resover.invoke in interface EntryPointResolverinvoke in class ReflectionEntryPointResolverExceptionpublic String toString()
toString in class ReflectionEntryPointResolverCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.