|
Daraja HTTP Framework 3.0.7-SNAPSHOT
HTTP server framework for Object Pascal
|
Holds a WebComponent and configuration data. More...
Public Member Functions | |
| TdjWebComponentHolder (TdjWebComponentClass WebComponentClass) | |
| Constructor. | |
| ~TdjWebComponentHolder () | |
| Destructor. | |
| IContext | GetContext () |
| Get the context. | |
| Boolean | IsStarted () |
| Boolean | IsStopped () |
| SetContext (const IContext Context) | |
| Set the context. | |
| SetInitParameter (const string Key, const string Value) | |
| Set initialization parameter. | |
| Start () | |
| Starts the component. | |
| Stop () | |
| Stops the component. | |
Public Attributes | |
| string | Name |
| Boolean | Started |
| Boolean | Stopped |
| TdjWebComponent | WebComponent |
| The instance of the Web Component. | |
| TdjWebComponentClass | WebComponentClass |
| The Web Component Class. | |
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. | |
Holds a WebComponent and configuration data.
| TdjWebComponentHolder::TdjWebComponentHolder | ( | TdjWebComponentClass | WebComponentClass | ) |
Constructor.
| WebComponentClass | the Web Component class |
Referenced by GetContext(), and SetInitParameter().
| TdjWebComponentHolder::~TdjWebComponentHolder | ( | ) |
Destructor.
|
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.
| IContext TdjWebComponentHolder::GetContext | ( | ) |
Get the context.
References TdjWebComponentHolder().
|
inherited |
Implements ILifeCycle.
References Create().
Referenced by DoStart(), and TdjWebComponentHandler::FindHolder().
|
inherited |
| TdjWebComponentHolder::SetContext | ( | const IContext | Context | ) |
Set the context.
| Context | the context |
| TdjWebComponentHolder::SetInitParameter | ( | const string | Key, |
| const string | Value ) |
Set initialization parameter.
| Key | init parameter name |
| Value | init parameter value |
References TdjWebComponentHolder().
|
inherited |
|
inherited |
Stops the component.
Implements ILifeCycle.
References TdjLifeCycle().
Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().
|
inherited |
|
inherited |
| TdjWebComponent TdjWebComponentHolder::WebComponent |
The instance of the Web Component.
| TdjWebComponentClass TdjWebComponentHolder::WebComponentClass |
The Web Component Class.