简体   繁体   English

接缝组件的默认范围

[英]Default scope of seam component

如果我们不在seam组件中声明范围类型,那么它的范围类型是什么?

There is no exact answer for this and this is a basic point that you should understand well. 对此没有确切的答案,这是一个你应该理解的基本点。
Read this for more info: Seam contexts 阅读本文以获取更多信息: Seam上下文

Summary: 摘要:

  1. If your component is a SFSB (Stateful Session Bean) the default scope will be " Conversation " sope. 如果您的组件是SFSB (有状态会话Bean),则默认范围将是“ 对话 ”。 However if you didn't propagate it taking proper actions this default conversion normally exists only within the request cycle. 但是,如果您没有通过正确的操作传播它,则此默认转换通常仅在请求周期内存在。 So you may see this as event scoped.( You should read more ) 所以你可能会把它看作事件范围。( 你应该阅读更多
  2. If the component is a SLSB the default scope will be " Stateless ". 如果组件是SLSB,则默认范围将为“ 无状态 ”。
  3. If your component is a POJO the default scope will be " event ". 如果您的组件是POJO,则默认范围将是“ event ”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM