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
ConstructorsConstructorDescriptionMethodInvokingReleaseStrategy(Object object, Method method) MethodInvokingReleaseStrategy(Object object, String methodName) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRelease(MessageGroup messages) booleanvoidsetBeanFactory(BeanFactory beanFactory) voidsetConversionService(ConversionService conversionService) voidstart()voidstop()
-
Constructor Details
-
MethodInvokingReleaseStrategy
-
MethodInvokingReleaseStrategy
-
-
Method Details
-
setConversionService
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware
-
canRelease
- Specified by:
canReleasein interfaceReleaseStrategy
-
start
public void start()- Specified by:
startin interfaceLifecycle- Specified by:
startin interfaceManageableLifecycle
-
stop
public void stop()- Specified by:
stopin interfaceLifecycle- Specified by:
stopin interfaceManageableLifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceLifecycle- Specified by:
isRunningin interfaceManageableLifecycle
-