Skullabs / kikaha

A fast middleware designed for microservices
https://skullabs.github.io/kikaha/
Apache License 2.0
59 stars 13 forks source link

Make tRip be optional, but the main DI/IoC dependency #68

Closed miere closed 8 years ago

miere commented 9 years ago

Today implementation design makes Kikaha directly dependent on tRip for Dependency Injection. The idea is open the gates to another DI implementations, such as Spring and Guice.

To make this viable, kikaha-core will provide a set of interfaces called Dependency Injection Wrapper API. UndertowServer.java class, that starts up embedded Undertow server will become dependent on these interfaces. Developers will be able to implement these interfaces and make Kikaha compatible with another DI containers.

The core components the Dependency Injection Wrapper API:

miere commented 8 years ago

Its been about 9 months since last update on this issue and, as the user's feedback comes, this issue took another direction. In order to keep Kikaha simple, it will merge the main tRip's IoC routine into the Kikaha's core. tRip already has extension support and it will be kept on Kikaha to allow module developers to create Guice and Spring extensions. The only out-of-box extension that Kikaha will offer is the JSR-330 CDI implementation.