CDI 使用装饰器拦截器
我想知道根据定义,装饰器是否可以具有方法的拦截器。我正在使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
IMO:装饰器中的方法永远不会通过上下文引用直接调用,因此不能被拦截。这些是方法的容器调用。
IMO: Methods in the decorator are never called directly through a contextual reference, therefore must not interceptable. These are container invocations of methods.