Skip to main content

Enumeration: BindingState

Defined in: packages/core/src/oc/BindingState.ts:1

Enumeration Members

App

App: "app"

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

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).


IMA

IMA: "ima.core"

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

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).

Returns

The IMA binding state.


Plugin

Plugin: "plugin"

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

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.