- 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.
- Learn ECMAScript(Second Edition)
- Java多線程編程實(shí)戰(zhàn)指南:設(shè)計(jì)模式篇(第2版)
- AngularJS Web Application Development Blueprints
- 算法精粹:經(jīng)典計(jì)算機(jī)科學(xué)問(wèn)題的Python實(shí)現(xiàn)
- Visual C++串口通信技術(shù)詳解(第2版)
- 21天學(xué)通C++(第6版)
- The Data Visualization Workshop
- Illustrator CS6設(shè)計(jì)與應(yīng)用任務(wù)教程
- Python趣味編程與精彩實(shí)例
- Flink入門(mén)與實(shí)戰(zhàn)
- MySQL核心技術(shù)與最佳實(shí)踐
- Android熱門(mén)應(yīng)用開(kāi)發(fā)詳解
- PHP從入門(mén)到精通(第7版)
- Scratch編程入門(mén)與算法進(jìn)階(第2版)
- Performance Testing with JMeter 3(Third Edition)