-
Book Overview & Buying
-
Table Of Contents
Java Web Internals
By :
In previous chapters, we explored the natural evolution of our SimpleWebFramework: it started as a simple static content server, evolved into an Application Server capable of executing Java code in response to HTTP requests, and finally, became a web framework capable of automatically mapping controllers and methods through annotations.
Each of these steps brought a new layer of abstraction and automation. But until now, despite the automation in routing and request handling, there was one point that remained manual: the creation and management of dependencies.
Whenever a controller needed to use an auxiliary service (for example, a data repository, an authentication component, or a messaging provider), this dependency still needed to be instantiated manually, within the code itself. This created coupling, made maintenance difficult, and prevented the framework from achieving the level of independence and modularity observed in modern...