public class MethodInvokingReleaseStrategy extends Object implements ReleaseStrategy, BeanFactoryAware, ManageableLifecycle
ReleaseStrategy that invokes a method on a plain old Java object.| Constructor and Description |
|---|
MethodInvokingReleaseStrategy(Object object,
Method method) |
MethodInvokingReleaseStrategy(Object object,
String methodName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRelease(MessageGroup messages) |
boolean |
isRunning() |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setConversionService(ConversionService conversionService) |
void |
start() |
void |
stop() |
public void setConversionService(ConversionService conversionService)
public void setBeanFactory(BeanFactory beanFactory)
setBeanFactory in interface BeanFactoryAwarepublic boolean canRelease(MessageGroup messages)
canRelease in interface ReleaseStrategypublic void start()
start in interface Lifecyclestart in interface ManageableLifecyclepublic void stop()
stop in interface Lifecyclestop in interface ManageableLifecyclepublic boolean isRunning()
isRunning in interface LifecycleisRunning in interface ManageableLifecycle