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 BeanFactoryAware
public boolean canRelease(MessageGroup messages)
canRelease
in interface ReleaseStrategy
public void start()
start
in interface Lifecycle
start
in interface ManageableLifecycle
public void stop()
stop
in interface Lifecycle
stop
in interface ManageableLifecycle
public boolean isRunning()
isRunning
in interface Lifecycle
isRunning
in interface ManageableLifecycle