Skip to content

@sora-soft/framework


@sora-soft/framework / Component

Abstract Class: Component ​

Defined in: packages/framework/src/lib/Component.ts:15

Constructors ​

Constructor ​

ts
new Component(): Component;

Defined in: packages/framework/src/lib/Component.ts:16

Returns ​

Component

Properties ​

PropertyModifierTypeDefined in
id_protectedstringpackages/framework/src/lib/Component.ts:98
name_protectedstringpackages/framework/src/lib/Component.ts:99
options_protectedIComponentOptionspackages/framework/src/lib/Component.ts:100
ref_protectedLifeRef<void>packages/framework/src/lib/Component.ts:101

Accessors ​

id ​

Get Signature ​

ts
get id(): string;

Defined in: packages/framework/src/lib/Component.ts:65

Returns ​

string


meta ​

Get Signature ​

ts
get meta(): IComponentMetaData;

Defined in: packages/framework/src/lib/Component.ts:85

Returns ​

IComponentMetaData


name ​

Get Signature ​

ts
get name(): string;

Defined in: packages/framework/src/lib/Component.ts:69

Returns ​

string

Set Signature ​

ts
set name(value): void;

Defined in: packages/framework/src/lib/Component.ts:73

Parameters ​
ParameterType
valuestring
Returns ​

void


options ​

Get Signature ​

ts
get options(): IComponentOptions;

Defined in: packages/framework/src/lib/Component.ts:81

Returns ​

IComponentOptions


ready ​

Get Signature ​

ts
get ready(): boolean;

Defined in: packages/framework/src/lib/Component.ts:77

Returns ​

boolean


scope ​

Get Signature ​

ts
get scope(): ComponentScope;

Defined in: packages/framework/src/lib/Component.ts:94

Returns ​

ComponentScope


version ​

Get Signature ​

ts
get abstract version(): string;

Defined in: packages/framework/src/lib/Component.ts:63

Returns ​

string

Methods ​

connect() ​

ts
abstract protected connect(): Promise<void>;

Defined in: packages/framework/src/lib/Component.ts:31

Returns ​

Promise<void>


disconnect() ​

ts
abstract protected disconnect(): Promise<void>;

Defined in: packages/framework/src/lib/Component.ts:46

Returns ​

Promise<void>


loadOptions() ​

ts
loadOptions(options): void;

Defined in: packages/framework/src/lib/Component.ts:26

Parameters ​

ParameterType
optionsIComponentOptions

Returns ​

void


setOptions() ​

ts
abstract protected setOptions(options): void;

Defined in: packages/framework/src/lib/Component.ts:25

Parameters ​

ParameterType
optionsIComponentOptions

Returns ​

void


start() ​

ts
start(): Promise<void>;

Defined in: packages/framework/src/lib/Component.ts:32

Returns ​

Promise<void>


stop() ​

ts
stop(): Promise<void>;

Defined in: packages/framework/src/lib/Component.ts:47

Returns ​

Promise<void>

基于 WTFPL 许可发布