public class MethodInvokingReleaseStrategy extends java.lang.Object implements ReleaseStrategy
ReleaseStrategy
that invokes a method on a plain old Java object.Constructor and Description |
---|
MethodInvokingReleaseStrategy(java.lang.Object object,
java.lang.reflect.Method method) |
MethodInvokingReleaseStrategy(java.lang.Object object,
java.lang.String methodName) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRelease(MessageGroup messages) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setConversionService(org.springframework.core.convert.ConversionService conversionService) |
public MethodInvokingReleaseStrategy(java.lang.Object object, java.lang.reflect.Method method)
public MethodInvokingReleaseStrategy(java.lang.Object object, java.lang.String methodName)
public void setConversionService(org.springframework.core.convert.ConversionService conversionService)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
public boolean canRelease(MessageGroup messages)
canRelease
in interface ReleaseStrategy