- Mastering JavaServer Faces 2.2
- Anghel Leonard
- 172字
- 2021-12-08 12:41:31
The none scope
The none scoped beans lives to serve other beans.
The none scope seems to be the black sheep of JSF scopes. Even its name doesn't inspire something useful. Practically, a managed bean in this scope lives as long as a single EL expression evaluation and is not visible in any JSF page. If the application scope lives the longest, this scope lives the shortest. But, if you inject the none scoped managed beans in other managed beans, then they will live as long as their hosts. Actually, this is their job, to serve other beans.
Note
The none scoped objects used in the configuration file indicate managed beans that are used by other managed beans in the application.
So, whenever you need a humble managed bean that is ready to be a part of a cool scope, such as a request or a session, you can annotate it with @NoneScoped
, available in the javax.faces.bean
package. Moreover, objects with the none scope can use other objects with the none scope.
- Intel FPGA/CPLD設計(基礎篇)
- 電腦軟硬件維修大全(實例精華版)
- 數字道路技術架構與建設指南
- The Applied AI and Natural Language Processing Workshop
- scikit-learn:Machine Learning Simplified
- Mastering Adobe Photoshop Elements
- Large Scale Machine Learning with Python
- CC2530單片機技術與應用
- 筆記本電腦使用、維護與故障排除從入門到精通(第5版)
- 超大流量分布式系統架構解決方案:人人都是架構師2.0
- Istio服務網格技術解析與實踐
- 單片機原理及應用:基于C51+Proteus仿真
- FL Studio Cookbook
- 施耐德M241/251可編程序控制器應用技術
- ActionScript Graphing Cookbook