Interface for components that depends on other components.
If component requires explicit notification to unset references it shall additionally implement IUnreferenceable interface.
IReferences
IUnreferenceable
Referencer
export class MyController implements IReferenceable { public _persistence: IMyPersistence; ... public setReferences(references: IReferences): void { this._persistence = references.getOneRequired<IMyPersistence>( new Descriptor("mygroup", "persistence", "*", "*", "1.0") ); } ... }
Sets references to dependent components.
references to locate the component dependencies.
Generated using TypeDoc
Interface for components that depends on other components.
If component requires explicit notification to unset references it shall additionally implement IUnreferenceable interface.
IReferences
IUnreferenceable
Referencer
Example
export class MyController implements IReferenceable { public _persistence: IMyPersistence; ... public setReferences(references: IReferences): void { this._persistence = references.getOneRequired<IMyPersistence>( new Descriptor("mygroup", "persistence", "*", "*", "1.0") ); } ... }