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)
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, setIgnoredMethods
addMethodByArguments, addMethodByName, getCacheKeyForPayload, getMethodByArguments, getMethodByName, getMethodCache, getPayloadFromMessage, invokeMethod, isAcceptVoidMethods, isSynchronizeCall, setAcceptVoidMethods, setSynchronizeCall
public void addMethod(String name)
public boolean removeMethod(String name)
public boolean isEnableDiscovery()
public void setEnableDiscovery(boolean enableDiscovery)
public InvocationResult invoke(Object component, MuleEventContext context) throws Exception
ReflectionEntryPointResolver
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 EntryPointResolver
invoke
in class ReflectionEntryPointResolver
Exception
public String toString()
toString
in class ReflectionEntryPointResolver
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.