Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PartFactory

Hierarchy

  • PartFactory

Implements

  • Iterable<[string, Part]>
  • IDisposable

Index

Constructors

constructor

Properties

Private _OnUpdated

_OnUpdated: Observable<string>

Private _OnUpdatedSrc$

_OnUpdatedSrc$: Subject<string> = new Subject<string>()

Emits when a new part is added

Private _isDisposed

_isDisposed: boolean = false

Private parent

parent: PartFactory | null = null

A PartFactory will fall back to it's parent if it doesn't have a part.

Private registry

registry: Map<string, Part> = new Map<string, typeof Part>()

Accessors

OnUpdated

  • get OnUpdated(): Observable<string>
  • Emits when new parts are added to either this factory or any parent.

    Returns Observable<string>

isDisposed

  • get isDisposed(): boolean

Methods

__@iterator

  • __@iterator(): Iterator<[string, Part]>

createPart

  • createPart(partName: string, args: IOptions): Part

dispose

  • dispose(): void

get

  • get(partName: string): Part | undefined

getMetadataForPart

has

  • has(partName: string): boolean

keys

  • keys(): Iterable<string>

registerPart

  • registerPart(name: string, constructor: Part): void

unregisterPart

  • unregisterPart(name: string): void

Generated using TypeDoc