Skip to main content

Enumeration: BindingState

@ima/core.BindingState

Enumeration Members

App

App = "app"

Constant for app binding state.

When the object container is in app binding state, it is possible to register new aliases using the bind() method and register new constant using the constant() method, or override the default class dependencies of any already-configured class using the inject() method (classes that were not configured yet may be configured using the inject() method or provide() method).

Defined in

packages/core/src/oc/BindingState.ts:49


IMA

IMA = "ima.core"

Constant for IMA binding state.

When the object container is in ima binding state, it is possible to register new aliases using the bind() method and register new constant using the constant() method, or override the default class dependencies of any already-configured class using the inject() method (classes that were not configured yet may be configured using the inject() method or provide() method).

Defined in

packages/core/src/oc/BindingState.ts:36


Plugin

Plugin = "plugin"

Constant for plugin binding state.

When the object container is in plugin binding state, it is impossible to register new aliases using the bind() method and register new constant using the constant() method, or override the default class dependencies of any already-configured class using the inject() method (classes that were not configured yet may be configured using the inject() method or provide() method).

This prevents the unprivileged code (e.g. 3rd party plugins) from overriding the default dependency configuration provided by ima, or overriding the configuration of a 3rd party plugin by another 3rd party plugin.

The application itself has always access to the unlocked object container.

Defined in

packages/core/src/oc/BindingState.ts:21