CDI 使用装饰器拦截器

发布于 2024-12-14 13:07:33 字数 86 浏览 8 评论 0原文

我想知道根据定义,装饰器是否可以具有方法的拦截器。我正在使用owb,但它不起作用!

编辑:刚刚用焊接测试它是一样的!为什么装饰器不能有拦截器?

I would like to know if it is possible by definition, that a decorator may have an interceptor for a method or not. I am using owb and it does not work!

EDIT: Just tested it with WELD and it's the same! Why does a decorator may not have an interceptor?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

靖瑶 2024-12-21 13:07:33

IMO:装饰器中的方法永远不会通过上下文引用直接调用,因此不能被拦截。这些是方法的容器调用。

IMO: Methods in the decorator are never called directly through a contextual reference, therefore must not interceptable. These are container invocations of methods.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文