Options
All
  • Public
  • Public/Protected
  • All
Menu

CommandRegistry provides a safe method of referencing {@link geocortex.framework.commands.Command} instances between loosely coupled components.

Hierarchy

  • CommandRegistry

Index

Constructors

Properties

Methods

Constructors

constructor

  • Initializes a new instance of the {@link geocortex.framework.commands.CommandRegistry} class.

    Parameters

    • app: Application

      An instance of {@link geocortex.framework.application.Application}.

    Returns CommandRegistry

Properties

app

Instance of the {@link application.Application} that this registry belongs to.

commands

commands: object

Map object of commands held in this registry.

Type declaration

Methods

clear

  • clear(): void
  • Clears all commands.

    Returns void

command

  • Fetches a command by name. If the command doesn't exist, a placeholder ("wrapper") command is created.

    Parameters

    • name: string

      The name of the command to fetch.

    Returns Command