@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>
21 lines (20 loc) • 808 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExposeBeans = void 0;
/**
* *ExposeBeans* function allows you to expose beans from the application context,
* so that they can be accessed from the outside of the {@link ClawjectApplication @ClawjectApplication} class.
*
* This function will have an effect only on the root of your application context class
* (the one annotated with {@link ClawjectApplication @ClawjectApplication}).
* Clawject will validate the beans that are being exposed
* and will report an error if the bean is not found in the application context.
*
* @docs https://clawject.com/docs/fundamentals/expose-beans
*
* @public
* */
const ExposeBeans = () => {
return (exposedBeans) => exposedBeans;
};
exports.ExposeBeans = ExposeBeans;