# Class: MapRegistry<T>

The MapRegistry is a container for FlowCoreMap instances.

Maps can be registered and retrieved by ID.

# Type parameters

Name Type Default
T FlowCoreMap FlowCoreMap

# Hierarchy

  • MapRegistry

# Methods

# getMap

getMap(id: string): Promise<T>

Retrieve the specified map.

This method returns a promise that resolves when the map has been initialized.

# Parameters:

Name Type Description
id string Map ID.

Returns: Promise<T>


# registerMap

registerMap(id: string, map: T): void

Register a Flo.w map.

# Parameters:

Name Type Description
id string Map ID.
map T Map to register.

Returns: void


# unregisterMap

unregisterMap(id: string): void

Un-register a Flo.w map.

# Parameters:

Name Type Description
id string Map ID.

Returns: void