Class MethodInvokingReleaseStrategy
java.lang.Object
org.springframework.integration.aggregator.MethodInvokingReleaseStrategy
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,Lifecycle
,ReleaseStrategy
,ManageableLifecycle
public class MethodInvokingReleaseStrategy
extends Object
implements ReleaseStrategy, BeanFactoryAware, ManageableLifecycle
A
ReleaseStrategy
that invokes a method on a plain old Java object.- Author:
- Marius Bogoevici, Dave Syer, Artme Bilan
-
Constructor Summary
ConstructorDescriptionMethodInvokingReleaseStrategy
(Object object, Method method) MethodInvokingReleaseStrategy
(Object object, String methodName) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canRelease
(MessageGroup messages) boolean
void
setBeanFactory
(BeanFactory beanFactory) void
setConversionService
(ConversionService conversionService) void
start()
void
stop()
-
Constructor Details
-
MethodInvokingReleaseStrategy
-
MethodInvokingReleaseStrategy
-
-
Method Details
-
setConversionService
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
-
canRelease
- Specified by:
canRelease
in interfaceReleaseStrategy
-
start
public void start()- Specified by:
start
in interfaceLifecycle
- Specified by:
start
in interfaceManageableLifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceLifecycle
- Specified by:
stop
in interfaceManageableLifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceLifecycle
- Specified by:
isRunning
in interfaceManageableLifecycle
-