UNPKG

@clawject/di

Version:

<p align="center"> <a href="https://clawject.com/" target="_blank"><img src="https://clawject.com/img/logo.svg" align="center" alt="Clawject Logo" width="120" height="120" /></a> </p>

27 lines (26 loc) 980 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PreDestroy = exports.PostConstruct = void 0; const ErrorBuilder_1 = require("../../ErrorBuilder"); /** * Indicates that an annotated method or property with arrow function should be called * after configuration or the bean has been constructed. * * @docs https://clawject.com/docs/fundamentals/lifecycle#postconstruct * * @public */ const PostConstruct = () => { throw ErrorBuilder_1.ErrorBuilder.usageWithoutConfiguredDI('@PostConstruct'); }; exports.PostConstruct = PostConstruct; /** * Indicates that an annotated method or property with arrow function should be called * before the application context will be closed or the bean will be destroyed. * * @docs https://clawject.com/docs/fundamentals/lifecycle#predestroy * * @public */ const PreDestroy = () => { throw ErrorBuilder_1.ErrorBuilder.usageWithoutConfiguredDI('@PreDestroy'); }; exports.PreDestroy = PreDestroy;