|
Daraja HTTP Framework 3.0.7-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 () |
| Start () | |
| Starts the component. | |
| Stop () | |
| Stops the component. | |
Public Attributes | |
| 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.
References TdjLifeCycle().
|
protectedinherited |
Raises an exception if the lifecycle is in "stopped" state.
References TdjLifeCycle(), and Started.
|
protectedinherited |
Execute the custom start code.
References Create(), Destroy(), IsStarted(), IsStopped(), and Stop().
|
protectedinherited |
|
inherited |
Implements ILifeCycle.
References Create().
Referenced by DoStart(), and TdjWebComponentHandler::FindHolder().
|
inherited |
|
inherited |
|
inherited |
Stops the component.
Implements ILifeCycle.
References TdjLifeCycle().
Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().
| string TdjGenericHolder::Name |
|
inherited |