Some example projects demonstrating the use of various DI/IoC implementations
Java
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cdi
common
dagger
guice
spring
.gitignore
.travis.yml
Dependency Injection.odp
LICENSE
README.md
pom.xml

README.md

Examples of Inversion of Control/Dependency Injection In Java

Build Status

There are slides and notes included in this project in LibreOffce format.

Overview

There are 4 submodule projects and 1 common code submodule.

  1. spring - DI/IoC using Spring
  2. guice - DI using Google Guice
  3. cdi - DI using CDI and Apache DeltaSpike
  4. dagger - DI using Google's Dagger 2

Prerequisites

  1. Java >= 6
  2. Maven >= 3.0
  3. Internet Access for downloading dependencies via Maven

Compiling

mvn compile

Running Tests

mvn test

Database

The database used in each of the submodules is HSQLDB and uses Liquibase to initialize the database schema.

The Java User's Group of Greater Louisville (JUGGL)