Skip to content

TCustomDaemonMapper

Daemon mapper.

Declaration

Source position: daemonapp.pp line 300

type

  TCustomDaemonMapper = class(TComponent)
  public
    constructor Create;
    destructor Destroy;
  published
    property DaemonDefs: TDaemonDefs; {rw}
    property OnCreate: TNotifyEvent; {rw}
    property OnDestroy: TNotifyEvent; {rw}
    property OnRun: TNotifyEvent; {rw}
    property OnInstall: TNotifyEvent; {rw}
    property OnUnInstall: TNotifyEvent; {rw}
  end;

Description

The TCustomDaemonMapper class is responsible for mapping a daemon definition to an actual TDaemon instance. It maintains a TDaemonDefs collection with daemon definitions, which can be used to map the definition of a daemon to a TDaemon descendent class.

An IDE such as Lazarus can design a TCustomDaemonMapper instance visually, to help establish the relationship between various TDaemonDef definitions and the actual TDaemon instances that will be used to run the daemons.

The TCustomDaemonMapper class has no support for streaming. The TDaemonMapper class has support for streaming (and hence visual designing).

Properties

Member Visibility Description
DaemonDefs published Collection of daemons.
See all Properties

Methods

Member Visibility Description
Create public Create a new instance of TCustomDaemonMapper.
Destroy public Clean up and destroy a TCustomDaemonMapper instance.
See all Methods

Events

Member Visibility Description
OnCreate published Event called when the daemon mapper is created.
OnDestroy published Event called when the daemon mapper is freed.
OnInstall published Event called when the daemons are installed.
OnRun published Event called when the daemons are executed.
OnUnInstall published Event called when the daemons are uninstalled.
See all Events

See also

Name Description
TDaemon Daemon class for visual development.
TDaemonDef Daemon definition.
TDaemonDefs Collection of daemon definitions.
TDaemonMapper Daemon mapper for designing in IDE.