Class AbstractLifecycle
- java.lang.Object
-
- com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
-
- Direct Known Subclasses:
AbstractAssetManager
,AbstractBinding
,AbstractSessionKernel
,ClientHtmlLoader
,ComponentModel
,ComponentModelDelegate
,FileWatcher
,IdpProxyWebServer
,MessageHandlerCollection
,PageModel
,PerspectiveSessionCollection
,PollingTaskManager
,ProjectLifecycle
,ProjectLifecycleFactory
,PropertyReference
,SessionKernelWrapper
,ViewModel
,WebAuthRequestCollection
public abstract class AbstractLifecycle extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AbstractLifecycle()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
isRunning()
protected abstract void
onShutdown()
protected abstract void
onStartup()
void
shutdown()
Call to shut this thing down.void
startup()
Call to start this thing up.
-
-
-
Method Detail
-
startup
public final void startup()
Call to start this thing up. The first time this is called,onStartup()
will be called. Subsequent invocations will throw anIllegalStateException
-
onStartup
protected abstract void onStartup()
-
shutdown
public final void shutdown()
Call to shut this thing down. Must have called startup first for this to have an effect.
-
onShutdown
protected abstract void onShutdown()
-
isRunning
public boolean isRunning()
- Returns:
- true after
startup()
is called and beforeshutdown()
is called.
-
-