public class MethodInvokingReleaseStrategy extends java.lang.Object implements ReleaseStrategy, org.springframework.beans.factory.BeanFactoryAware, ManageableLifecycle
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) |
boolean |
isRunning() |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setConversionService(org.springframework.core.convert.ConversionService conversionService) |
void |
start() |
void |
stop() |
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)
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwarepublic boolean canRelease(MessageGroup messages)
canRelease in interface ReleaseStrategypublic void start()
start in interface org.springframework.context.Lifecyclestart in interface ManageableLifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclestop in interface ManageableLifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.LifecycleisRunning in interface ManageableLifecycle