|
Daraja HTTP Framework 3.1.1-SNAPSHOT
HTTP server framework for Object Pascal
|
Holds a WebComponent and configuration data. More...
Public Member Functions | |
| TdjWebComponentHolder (TdjWebComponentClass WebComponentClass) | |
| Constructor. | |
| ~TdjWebComponentHolder () | |
| Destructor. | |
| TdjWebComponentClass | GetClass () |
| IContext | GetContext () |
| Get the context. | |
| TdjWebComponent | GetWebComponent () |
| Boolean | IsStarted () |
| Boolean | IsStopped () |
| SetContext (const IContext Context) | |
| Set the context. | |
| SetInitParameter (const string Key, const string Value) | |
| Set initialization parameter. | |
| SetStarted (const Boolean Value) | |
| SetStopped (const Boolean Value) | |
| Start () | |
| Starts the component. | |
| Stop () | |
| Stops the component. | |
Public Attributes | |
| TCriticalSection | CS |
| TdjWebComponentClass | FClass |
| IWebComponentConfig | FConfig |
| Boolean | FStopped |
| TdjWebComponent | FWebComponent |
| 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(), SetContext(), and SetInitParameter().
| TdjWebComponentHolder::~TdjWebComponentHolder | ( | ) |
Destructor.
|
protectedinherited |
Raises an exception if the lifecycle is in "started" state.
|
protectedinherited |
Raises an exception if the lifecycle is in "stopped" state.
References TdjLifeCycle().
| TdjWebComponentClass TdjWebComponentHolder::GetClass | ( | ) |
References WebComponentClass.
| IContext TdjWebComponentHolder::GetContext | ( | ) |
Get the context.
References TdjWebComponentHolder().
| TdjWebComponent TdjWebComponentHolder::GetWebComponent | ( | ) |
|
inherited |
Implements ILifeCycle.
References TdjLifeCycle().
Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().
|
inherited |
Implements ILifeCycle.
References Create().
Referenced by DoStart().
| TdjWebComponentHolder::SetContext | ( | const IContext | Context | ) |
Set the context.
| Context | the context |
References TdjWebComponentHolder(), and WebComponentClass.
| TdjWebComponentHolder::SetInitParameter | ( | const string | Key, |
| const string | Value ) |
Set initialization parameter.
| Key | init parameter name |
| Value | init parameter value |
References TdjWebComponentHolder(), FClass, and WebComponentClass.
|
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().
| TdjWebComponentClass TdjWebComponentHolder::FClass |
Referenced by SetInitParameter().
| IWebComponentConfig TdjWebComponentHolder::FConfig |
|
inherited |
Referenced by ~TdjLifeCycle(), and DoStop().
| TdjWebComponent TdjWebComponentHolder::FWebComponent |
|
inherited |
|
inherited |
Referenced by TdjHandlerCollection::~TdjHandlerCollection(), and DoStop().
| TdjWebComponent TdjWebComponentHolder::WebComponent |
The instance of the Web Component.
| TdjWebComponentClass TdjWebComponentHolder::WebComponentClass |
The Web Component Class.
Referenced by GetClass(), SetContext(), and SetInitParameter().