- Developing Middleware in Java EE 8
- Abdalla Mahmoud
- 144字
- 2021-07-23 19:24:29
Contexts and dependency injection
When designing an enterprise solution, one of the primary tasks is to divide your application into separate components that interact with each other. To avoid all the hassle of managing our components, their dependencies, and their life cycles, the contexts and dependency API (CDI) has been developed to be the backbone of component and dependency management. By components, we mean objects that encapsulate your application's business logic. By dependencies, we mean commonly used application-shared resources such as a database connection, user sessions, web service endpoints, and such.
In Chapter 2, Dependency Injection Using CDI 2.0, we'll learn how to create and use CDI beans, how to use bean scopes, how to provide different implementations of the same bean, and how to inject beans into other beans. Moreover, we'll learn about some more advanced topics, such as producers, interceptors, and events.
- 程序員修煉之道:程序設計入門30講
- Learn TypeScript 3 by Building Web Applications
- Xcode 7 Essentials(Second Edition)
- HTML5 Mobile Development Cookbook
- R語言編程指南
- 匯編語言程序設計(第2版)
- Raspberry Pi 2 Server Essentials
- iOS應用逆向工程(第2版)
- Python時間序列預測
- Building Wireless Sensor Networks Using Arduino
- 深入理解C指針
- 運維前線:一線運維專家的運維方法、技巧與實踐
- Access數據庫應用教程(2010版)
- Laravel Design Patterns and Best Practices
- 零基礎學編程系列(全5冊)