Skip to content

Latest commit

 

History

History
 
 

README.md

Dependency Injection examples

This demo shows basic use cases for some popular Dependency Injection frameworks. data-service project implements example service beans MessageService. There are two implementations of same MessageService interface.

  1. itx.examples.di.service.impl.MessageServiceSyncImpl - synchronous service
  2. itx.examples.di.service.impl.MessageServiceAsyncImpl - asynchronous service

data-service implementation requires only Java SE runtime and has no framework dependencies. MessageService is used in application examples for DI showcases.

app-simple - is plain Java SE application using MessageService without any DI framework.

Dependency Injection providers

Those projects are providers for various popular DI frameworks.

Example Applications (DI consumers)

  • app-spring - example application using MessageService instances with spring DI system.
  • app-guice - example application using MessageService instances with google guice DI system.
  • app-dagger - example application using MessageService instances with google dagger DI system.

Build and Test

gradle clean build