Daraja Framework
1.2
HTTP server framework for Object Pascal
|
Abstract LifeCycle implementation. More...
Public Member Functions | |
TdjLifeCycle () | |
Constructor. | |
Start () | |
Start the handler. More... | |
Stop () | |
Stop the handler. More... | |
Boolean | IsStarted () |
Boolean | IsStopped () |
Public Attributes | |
Boolean | Started |
True if the state is "started". More... | |
Boolean | Stopped |
True if the state is "stopped". More... | |
Protected Member Functions | |
DoStart () | |
Execute the custom start code. | |
DoStop () | |
Execute the custom stop code. | |
CheckStarted () | |
Raises an exception if the lifecycle is in "started" state. | |
CheckStopped () | |
Raises an exception if the lifecycle is in "stopped" state. | |
Abstract LifeCycle implementation.
Boolean TdjLifeCycle::IsStarted | ( | ) |
Referenced by TdjServer::AddConnector(), TdjHTTPConnector::DoStop(), TdjHandlerCollection::Handle(), Start(), TdjAbstractConnector::TdjAbstractConnector(), TdjWebComponentHandler::TdjWebComponentHandler(), TdjHTTPConnector::~TdjHTTPConnector(), and TdjServer::~TdjServer().
Boolean TdjLifeCycle::IsStopped | ( | ) |
TdjLifeCycle::Start | ( | ) |
Start the handler.
References DoStart(), IsStarted(), and Started.
Referenced by TdjWebComponentHandler::TdjWebComponentHandler().
TdjLifeCycle::Stop | ( | ) |
Stop the handler.
References DoStop(), and Stopped.
Referenced by TdjAbstractConnector::TdjAbstractConnector(), TdjWebComponentHandler::TdjWebComponentHandler(), TdjHTTPConnector::~TdjHTTPConnector(), and TdjServer::~TdjServer().
Boolean TdjLifeCycle::Started |
True if the state is "started".
Referenced by TdjHandlerCollection::AddHandler(), CheckStarted(), TdjHTTPConnector::DoStart(), Start(), and TdjWebComponentHandler::TdjWebComponentHandler().
Boolean TdjLifeCycle::Stopped |
True if the state is "stopped".
Referenced by CheckStopped(), and Stop().