Package org.frankframework.larva.actions
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
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
Configure this component.void
invokeSetters
(int defaultTimeout, Properties properties) boolean
protected final T
peek()
void
start()
void
stop()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.frankframework.lifecycle.ConfigurableLifecycle
getPhase, isAutoStartup
Methods inherited from interface org.frankframework.larva.actions.LarvaScenarioAction
executeRead, executeWrite
Methods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Constructor Details
-
AbstractLarvaAction
-
-
Method Details
-
peek
-
configure
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 thisIConfigurable
. 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 theconfigure()
, to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configure
in interfaceIConfigurable
- Throws:
ConfigurationException
- in case it was not able to configure the component.
-
start
public void start()- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceorg.springframework.context.Lifecycle
-
invokeSetters
-