Class AbstractLarvaAction<T extends IConfigurable>

java.lang.Object
org.frankframework.larva.actions.AbstractLarvaAction<T>
All Implemented Interfaces:
AutoCloseable, IConfigurable, LarvaScenarioAction, ConfigurableLifecycle, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
Direct Known Subclasses:
LarvaAction, LarvaPushingListenerAction, PullingListenerAction, SenderAction

public abstract class AbstractLarvaAction<T extends IConfigurable> extends Object implements ConfigurableLifecycle, LarvaScenarioAction
This class is used to create and manage the lifecycle of Larva actions. This class is a wrapper around the IConfigurable interface and handles the read and write operations.
Author:
Niels Meijer
  • Constructor Details

    • AbstractLarvaAction

      protected AbstractLarvaAction(T configurable)
  • Method Details

    • peek

      protected final T peek()
    • configure

      public void configure() throws ConfigurationException
      Description copied from interface: IConfigurable
      Configure this component.

      configure() is called once at startup of the framework in the configure method of the owner of this IConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in the configure(), to improve performance.

      In the case of a container, this will propagate the configure signal to all components that apply.

      Specified by:
      configure in interface IConfigurable
      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • start

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

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

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • isRunning

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

      public void invokeSetters(int defaultTimeout, Properties properties)