Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IReferenceable

Interface for components that depends on other components.

If component requires explicit notification to unset references it shall additionally implement IUnreferenceable interface.

see

IReferences

see

IUnreferenceable

see

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")
        );
    }
    ...
}

Hierarchy

  • IReferenceable

Implemented by

Index

Methods

Methods

setReferences

  • Sets references to dependent components.

    see

    IReferences

    Parameters

    • references: IReferences

      references to locate the component dependencies.

    Returns void

Generated using TypeDoc