public abstract class SpringDaemonAdapter extends DaemonLifecycleAdapter
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
SpringDaemonAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.context.support.AbstractXmlApplicationContext |
createSpringContext() |
protected void |
doAfterSpringStart() |
protected void |
doAfterSpringStop() |
protected void |
doBeforeSpringStart() |
protected void |
doBeforeSpringStop() |
void |
doStart()
Will be called to allow for custom startup code
|
void |
doStop()
Will be called to allow for custom shutdown code
|
org.springframework.context.ApplicationContext |
getContext() |
protected String |
getSpringResource() |
Map<String,String> |
loadProperties() |
aborting, exception, getPropertyProvider, getShutdownTimeoutSeconds, loadBasicProperties, signalUSR2, started, stopped, stoppingpublic final void doStart()
throws Exception
IDaemonLifecycleListenerdoStart in interface IDaemonLifecycleListenerdoStart in class DaemonLifecycleAdapterException - if start failedprotected void doAfterSpringStart()
protected void doBeforeSpringStart()
protected void doAfterSpringStop()
protected void doBeforeSpringStop()
protected org.springframework.context.support.AbstractXmlApplicationContext createSpringContext()
protected String getSpringResource()
public final void doStop()
throws Exception
IDaemonLifecycleListenerdoStop in interface IDaemonLifecycleListenerdoStop in class DaemonLifecycleAdapterException - if shutdown failedpublic Map<String,String> loadProperties()
loadProperties in interface IDaemonLifecycleListenerloadProperties in class DaemonLifecycleAdapterpublic final org.springframework.context.ApplicationContext getContext()
Copyright © 2015–2022 Taimos GmbH. All rights reserved.