|
Daraja HTTP Framework 3.1.1-SNAPSHOT
HTTP server framework for Object Pascal
|
Abstract LifeCycle implementation. More...
Public Member Functions | |
| TdjLifeCycle () | |
| ~TdjLifeCycle () | |
| Boolean | IsStarted () |
| Boolean | IsStopped () |
| SetStarted (const Boolean Value) | |
| SetStopped (const Boolean Value) | |
| Start () | |
| Starts the component. | |
| Stop () | |
| Stops the component. | |
Public Attributes | |
| TCriticalSection | CS |
| Boolean | FStopped |
| Boolean | Started |
| Boolean | Stopped |
Protected Member Functions | |
| CheckStarted () | |
| Raises an exception if the lifecycle is in "started" state. | |
| CheckStopped () | |
| Raises an exception if the lifecycle is in "stopped" state. | |
| DoStart () | |
| Execute the custom start code. | |
| DoStop () | |
| Execute the custom stop code. | |
Abstract LifeCycle implementation.
| TdjLifeCycle::TdjLifeCycle | ( | ) |
Referenced by CheckStopped(), IsStarted(), and Start().
|
protected |
Raises an exception if the lifecycle is in "started" state.
|
protected |
Raises an exception if the lifecycle is in "stopped" state.
References TdjLifeCycle().
|
protected |
Execute the custom start code.
References IsStarted(), IsStopped(), Start(), and Stop().
|
protected |
Execute the custom stop code.
References Create(), Destroy(), FStopped, SetStarted(), SetStopped(), Started, and Stopped.
| Boolean TdjLifeCycle::IsStarted | ( | ) |
Implements ILifeCycle.
References TdjLifeCycle().
Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().
| Boolean TdjLifeCycle::IsStopped | ( | ) |
Implements ILifeCycle.
References Create().
Referenced by DoStart().
| TdjLifeCycle::SetStarted | ( | const Boolean | Value | ) |
Referenced by DoStop().
| TdjLifeCycle::SetStopped | ( | const Boolean | Value | ) |
Referenced by DoStop().
| TdjLifeCycle::Start | ( | ) |
| TdjLifeCycle::Stop | ( | ) |
Stops the component.
Implements ILifeCycle.
References Stopped.
Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().
| TCriticalSection TdjLifeCycle::CS |
Referenced by ~TdjLifeCycle().
| Boolean TdjLifeCycle::FStopped |
Referenced by ~TdjLifeCycle(), and DoStop().
| Boolean TdjLifeCycle::Started |
Referenced by TdjHandlerCollection::~TdjHandlerCollection(), and DoStop().