@ima/core
Version:
IMA.js framework for isomorphic javascript application
48 lines (47 loc) • 2.13 kB
JavaScript
export var BindingState = /*#__PURE__*/ function(BindingState) {
/**
* Constant for plugin binding state.
*
* When the object container is in plugin binding state, it is impossible
* to register new aliases using the {@link bind()} method and register
* new constant using the {@link constant()} method, or override the
* default class dependencies of any already-configured class using the
* {@link inject()} method (classes that were not configured yet may be
* configured using the {@link inject()} method or {@link 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.
*/ BindingState["Plugin"] = "plugin";
/**
* Constant for IMA binding state.
*
* When the object container is in ima binding state, it is possible
* to register new aliases using the {@link bind()} method and register
* new constant using the {@link constant()} method, or override the
* default class dependencies of any already-configured class using the
* {@link inject()} method (classes that were not configured yet may be
* configured using the {@link inject()} method or {@link provide()}
* method).
*
* @return The IMA binding state.
*/ BindingState["IMA"] = "ima.core";
/**
* Constant for app binding state.
*
* When the object container is in app binding state, it is possible
* to register new aliases using the {@link bind()} method and register
* new constant using the {@link constant()} method, or override the
* default class dependencies of any already-configured class using the
* {@link inject()} method (classes that were not configured yet may be
* configured using the {@link inject()} method or {@link provide()}
* method).
*/ BindingState["App"] = "app";
return BindingState;
}({});
//# sourceMappingURL=BindingState.js.map