Skip to Main Content
Get Your Hands Dirty on Clean Architecture
book

Get Your Hands Dirty on Clean Architecture

by Tom Hombergs
September 2019
Beginner content levelBeginner
156 pages
2h 47m
English
Packt Publishing
Content preview from Get Your Hands Dirty on Clean Architecture

Chapter 9

Assembling the Application

Now that we have implemented some use cases, web adapters, and persistence adapters, we need to assemble them into a working application. As discussed in Chapter 3, Organizing Code, we rely on a dependency injection mechanism to instantiate our classes and wire them together at startup. In this chapter, we will discuss some approaches for how we can do this with plain Java and the Spring and Spring Boot frameworks.

Why Even Care about Assembly?

Why aren't we just instantiating the use cases and adapters when and where we need them? Because we want to keep the code dependencies pointing in the right direction. Remember: all dependencies should point inward, toward the domain code of our application, so ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Get Your Hands Dirty on Clean Architecture - Second Edition

Get Your Hands Dirty on Clean Architecture - Second Edition

Tom Hombergs

Publisher Resources

ISBN: 9781839211966Other