lakutata
Version:
An IoC-based universal application framework.
43 lines (26 loc) • 1.18 kB
JavaScript
import { DI_TARGET_CONSTRUCTOR_LIFETIME as e, DI_TARGET_CONSTRUCTOR_LIFETIME_LOCK as t } from "../../../constants/DIMetadataKey.mjs";
import { LifetimeLockedException as a } from "../../../exceptions/di/LifetimeLockedException.mjs";
import "../../../../vendor/Package.4.mjs";
import "../../../../vendor/Package.5.mjs";
import "../abstracts/Exception.mjs";
import "./BasicInfo.mjs";
import "../../helpers/As.mjs";
import "../../../../vendor/Package.6.mjs";
import "../../../../vendor/Package.7.mjs";
import "./ThrowWarning.mjs";
import "../../helpers/Templating.mjs";
import "./CamelCase.mjs";
import "../../helpers/NoCase.mjs";
function o(t) {
return Reflect.getMetadata(e, t);
}
function r(e) {
return !!Reflect.getMetadata(t, e);
}
function i(i, m, s = false) {
if (r(i) && !s || r(i) && o(i) !== m) throw new a("[{0}] Object lifecycle settings cannot be applied because the parent object lifecycle of the current operation object is locked", [ i.className ]);
if (s) Reflect.defineMetadata(t, true, i);
Reflect.defineMetadata(e, m, i);
return i;
}
export { o as GetObjectLifetime, r as GetObjectLifetimeLocked, i as SetObjectLifetime };