|
Daraja HTTP Framework 3.1.1-SNAPSHOT
HTTP server framework for Object Pascal
|
A generic holder class that manages objects of type T. More...
Public Member Functions | |
| TdjGenericHolder (TInterfacedClass AClass) | |
| Constructor for creating an instance of the class. | |
| 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 |
| string | Name |
| 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. | |
A generic holder class that manages objects of type T.
| T | A type parameter constrained to TInterfacedObject. |
| TdjGenericHolder::TdjGenericHolder | ( | TInterfacedClass | AClass | ) |
Constructor for creating an instance of the class.
| AClass | The class type to be used for initialization. |
References TdjGenericHolder().
Referenced by TdjGenericHolder().
|
protectedinherited |
Raises an exception if the lifecycle is in "started" state.
|
protectedinherited |
Raises an exception if the lifecycle is in "stopped" state.
References TdjLifeCycle().
|
protectedinherited |
Execute the custom start code.
References IsStarted(), IsStopped(), Start(), and Stop().
|
protectedinherited |
Execute the custom stop code.
References Create(), Destroy(), FStopped, SetStarted(), SetStopped(), Started, and Stopped.
|
inherited |
Implements ILifeCycle.
References TdjLifeCycle().
Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().
|
inherited |
Implements ILifeCycle.
References Create().
Referenced by DoStart().
|
inherited |
Referenced by DoStop().
|
inherited |
Referenced by DoStop().
|
inherited |
|
inherited |
Stops the component.
Implements ILifeCycle.
References Stopped.
Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().
|
inherited |
Referenced by ~TdjLifeCycle().
|
inherited |
Referenced by ~TdjLifeCycle(), and DoStop().
| string TdjGenericHolder::Name |
|
inherited |
Referenced by TdjHandlerCollection::~TdjHandlerCollection(), and DoStop().