Package org.frankframework.lifecycle
Class ConfiguringLifecycleProcessor
java.lang.Object
org.springframework.context.support.DefaultLifecycleProcessor
org.frankframework.lifecycle.ConfiguringLifecycleProcessor
- All Implemented Interfaces:
IConfigurable
,ConfigurableLifecycle
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.context.Lifecycle
,org.springframework.context.LifecycleProcessor
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
public class ConfiguringLifecycleProcessor
extends org.springframework.context.support.DefaultLifecycleProcessor
implements ConfigurableLifecycle
This class is a custom implementation of the Spring
DefaultLifecycleProcessor
that adds support for
ConfigurableLifecycle
beans. It allows for the configuration of lifecycle beans before they are started.
Additionally it adds logging capabilities to track the context that's being lifecycled.
See ConfigurableApplicationContext
for more information.
-
Field Summary
Fields inherited from class org.springframework.context.support.DefaultLifecycleProcessor
CHECKPOINT_PROPERTY_NAME, EXIT_PROPERTY_NAME, ON_REFRESH_VALUE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ConstructorsConstructorDescriptionConfiguringLifecycleProcessor
(org.springframework.context.ApplicationContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoid
TheConfigurationDigester
may add new Lifecycle beans.void
void
start()
void
stop()
Methods inherited from class org.springframework.context.support.DefaultLifecycleProcessor
getLifecycleBeans, getPhase, isRunning, onClose, setBeanFactory, setConcurrentStartupForPhase, setConcurrentStartupForPhases, setTimeoutForShutdownPhase, setTimeoutPerShutdownPhase, setTimeoutsForShutdownPhases
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, isConfigured
Methods inherited from interface org.springframework.context.Lifecycle
isRunning
Methods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Constructor Details
-
ConfiguringLifecycleProcessor
public ConfiguringLifecycleProcessor(org.springframework.context.ApplicationContext context)
-
-
Method Details
-
configure
TheConfigurationDigester
may add new Lifecycle beans. Which is why it cannot be aConfigurableLifecycle
itself.- Specified by:
configure
in interfaceIConfigurable
- Throws:
ConfigurationException
- in case it was not able to configure the component.
-
onRefresh
public void onRefresh()- Specified by:
onRefresh
in interfaceorg.springframework.context.LifecycleProcessor
- Overrides:
onRefresh
in classorg.springframework.context.support.DefaultLifecycleProcessor
-
start
public void start()- Specified by:
start
in interfaceConfigurableLifecycle
- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
- Overrides:
start
in classorg.springframework.context.support.DefaultLifecycleProcessor
-
stop
public void stop()- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
- Overrides:
stop
in classorg.springframework.context.support.DefaultLifecycleProcessor
-