Configuring the dependency injection pattern with Spring