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 Object implements ReleaseStrategy, org.springframework.beans.factory.BeanFactoryAware, ManageableLifecycle
A ReleaseStrategy that invokes a method on a plain old Java object.
  • Constructor Details

    • MethodInvokingReleaseStrategy

      public MethodInvokingReleaseStrategy(Object object, Method method)
    • MethodInvokingReleaseStrategy

      public MethodInvokingReleaseStrategy(Object object, String methodName)
  • 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