I defined a serviceActivator :
<integration:service-activator input-channel="sampleChannel"
ref="sampleImpl" method="remove"/>
In SampleImpl, There are two overloaded method of remove :
public Object remove(Object payload) {
//some code ...
return payload;
}
public void remove() {
//some code ...
}
In method property, I want to choose remove method without argument ( remove() ). and in some scenario, I want to choose remove method with argument ( remove(Object payload) ). I found always pass payload as argument to remove method, so how can I choose only remove() ?