Assembling via Plain Code
Learn how to assemble your application via plain code.
We'll cover the following...
We'll cover the following...
Implementing the configuration component
There are several ways to implement a configuration component responsible for assembling the application. If we’re building an application without the support of a dependency injection framework, we can create such a component with plain code:
This code snippet is a simplified example of what such a configuration component might look like. In Java, an application is started from the main method. Within this method, we instantiate all the classes we need, from web controller to persistence ...