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.
itx.examples.di.service.impl.MessageServiceSyncImpl- synchronous serviceitx.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.
Those projects are providers for various popular DI frameworks.
- di-spring - dependency injection for spring.io
- di-guice - dependency injection for google guice
- di-dagger - dependency injection for google dagger
- app-spring - example application using
MessageServiceinstances with spring DI system. - app-guice - example application using
MessageServiceinstances with google guice DI system. - app-dagger - example application using
MessageServiceinstances with google dagger DI system.
gradle clean build