Class MethodInvokingReleaseStrategy

java.lang.Object
org.springframework.integration.aggregator.MethodInvokingReleaseStrategy
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.Lifecycle, ReleaseStrategy, ManageableLifecycle

public class MethodInvokingReleaseStrategy
extends java.lang.Object
implements ReleaseStrategy, org.springframework.beans.factory.BeanFactoryAware, ManageableLifecycle
A ReleaseStrategy that invokes a method on a plain old Java object.
  • Constructor Summary

    Constructors 
    Constructor Description
    MethodInvokingReleaseStrategy​(java.lang.Object object, java.lang.reflect.Method method)  
    MethodInvokingReleaseStrategy​(java.lang.Object object, java.lang.String methodName)  
  • Method Summary

    Modifier and Type Method 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()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • setConversionService

      public void setConversionService​(org.springframework.core.convert.ConversionService conversionService)
    • setBeanFactory

      public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
    • canRelease

      public boolean canRelease​(MessageGroup messages)
      Specified by:
      canRelease in interface ReleaseStrategy
    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
      Specified by:
      start in interface ManageableLifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
      Specified by:
      stop in interface ManageableLifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle
      Specified by:
      isRunning in interface ManageableLifecycle