Daraja HTTP Framework 3.0.7-SNAPSHOT
HTTP server framework for Object Pascal
Loading...
Searching...
No Matches
TdjWebComponentHolder Class Reference

Holds a WebComponent and configuration data. More...

Inheritance diagram for TdjWebComponentHolder:
TdjGenericHolder TdjWebComponent TdjLifeCycle ILifeCycle TdjWebComponentHolders

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.

Detailed Description

Holds a WebComponent and configuration data.

Constructor & Destructor Documentation

◆ TdjWebComponentHolder()

TdjWebComponentHolder::TdjWebComponentHolder ( TdjWebComponentClass WebComponentClass)

Constructor.

Parameters
WebComponentClassthe Web Component class

Referenced by GetContext(), and SetInitParameter().

◆ ~TdjWebComponentHolder()

TdjWebComponentHolder::~TdjWebComponentHolder ( )

Destructor.

Member Function Documentation

◆ CheckStarted()

TdjLifeCycle::CheckStarted ( )
protectedinherited

Raises an exception if the lifecycle is in "started" state.

References TdjLifeCycle().

◆ CheckStopped()

TdjLifeCycle::CheckStopped ( )
protectedinherited

Raises an exception if the lifecycle is in "stopped" state.

References TdjLifeCycle(), and Started.

◆ GetContext()

IContext TdjWebComponentHolder::GetContext ( )

Get the context.

References TdjWebComponentHolder().

◆ IsStarted()

Boolean TdjLifeCycle::IsStarted ( )
inherited
Returns
True if component is started

Implements ILifeCycle.

References Create().

Referenced by DoStart(), and TdjWebComponentHandler::FindHolder().

◆ IsStopped()

Boolean TdjLifeCycle::IsStopped ( )
inherited
Returns
True if component is stopped

Implements ILifeCycle.

Referenced by DoStart().

◆ SetContext()

TdjWebComponentHolder::SetContext ( const IContext Context)

Set the context.

Parameters
Contextthe context

◆ SetInitParameter()

TdjWebComponentHolder::SetInitParameter ( const string Key,
const string Value )

Set initialization parameter.

Parameters
Keyinit parameter name
Valueinit parameter value

References TdjWebComponentHolder().

◆ Start()

TdjLifeCycle::Start ( )
inherited

Starts the component.

Implements ILifeCycle.

References Stopped.

◆ Stop()

TdjLifeCycle::Stop ( )
inherited

Stops the component.

Implements ILifeCycle.

References TdjLifeCycle().

Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().

Member Data Documentation

◆ Name

string TdjGenericHolder::Name
inherited

◆ Started

◆ Stopped

Boolean TdjLifeCycle::Stopped
inherited

Referenced by DoStop(), and Start().

◆ WebComponent

TdjWebComponent TdjWebComponentHolder::WebComponent

The instance of the Web Component.

◆ WebComponentClass

TdjWebComponentClass TdjWebComponentHolder::WebComponentClass

The Web Component Class.