Daraja Framework
1.2
HTTP server framework for Object Pascal
|
Holds a WebComponent (class reference) and configuration info. More...
Public Member Functions | |
TdjWebComponentHolder (const TdjWebComponentClass WebComponentClass) | |
Constructor. More... | |
~TdjWebComponentHolder () | |
Destructor. | |
IContext | GetContext () |
Get the context. | |
SetContext (const IContext Context) | |
Set the context. More... | |
SetInitParameter (const string Key, const string Value) | |
Set initialization parameter. More... | |
DoStart () | |
Start the handler. | |
DoStop () | |
Stop the handler. | |
![]() | |
TdjGenericHolder (const TInterfacedClass AClass) | |
Create a TdjGenericHolder. | |
![]() | |
TdjLifeCycle () | |
Constructor. | |
Start () | |
Start the handler. More... | |
Stop () | |
Stop the handler. More... | |
Boolean | IsStarted () |
Boolean | IsStopped () |
Public Attributes | |
TdjWebComponentClass | WebComponentClass |
The Web Component Class. More... | |
TdjWebComponent | WebComponent |
The instance of the Web Component. More... | |
![]() | |
string | Name |
![]() | |
Boolean | Started |
True if the state is "started". More... | |
Boolean | Stopped |
True if the state is "stopped". More... | |
Additional Inherited Members | |
![]() | |
DoStart () | |
Execute the custom start code. | |
DoStop () | |
Execute the custom stop code. | |
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 (class reference) and configuration info.
A WebComponent instance will be created 'on the fly' when the WebComponent property is accessed. (lazy instantiation).
TdjWebComponentHolder::TdjWebComponentHolder | ( | const TdjWebComponentClass | WebComponentClass | ) |
Constructor.
WebComponentClass | the Web Component class |
References TdjAbstractConfig::Add(), TdjLifeCycle::CheckStarted(), DoStart(), DoStop(), GetContext(), TdjAbstractConfig::GetContext(), TdjGenericWebComponent::Init(), TdjGenericHolder::Name, TdjAbstractConfig::SetContext(), SetContext(), SetInitParameter(), WebComponent, WebComponentClass, and ~TdjWebComponentHolder().
TdjWebComponentHolder::SetContext | ( | const IContext | Context | ) |
Set the context.
Context | the context |
Referenced by TdjWebComponentContextHandler::AddWebComponent(), and TdjWebComponentHolder().
TdjWebComponentHolder::SetInitParameter | ( | const string | Key, |
const string | Value | ||
) |
Set initialization parameter.
Key | init parameter name |
Value | init parameter value |
Referenced by TdjWebComponentHolder().
TdjWebComponent TdjWebComponentHolder::WebComponent |
The instance of the Web Component.
Referenced by TdjWebComponentHandler::TdjWebComponentHandler(), and TdjWebComponentHolder().
TdjWebComponentClass TdjWebComponentHolder::WebComponentClass |
The Web Component Class.
Referenced by TdjWebComponentContextHandler::AddWebComponent(), and TdjWebComponentHolder().