Dependency injection in Akka Http

470 views
Skip to first unread message

Amer Zildzic

unread,
Jun 22, 2017, 6:10:51 AM6/22/17
to Akka User List
Hi guys,

I'm looking for a way to inject config in various classes/traits in Akka HTTP application. Config is loaded from various files (there is custom logic for it) and it should be used in all classes. Is there any other way to do this beside guice? And BTW, do you recommend using Guice in Akka HTTP? Question is more general. I'm relatively new to Scala and any comments on the topic are welcome.

Thanks,

Amer

Konrad “ktoso” Malawski

unread,
Jun 22, 2017, 6:12:55 AM6/22/17
to akka...@googlegroups.com, Amer Zildzic
Hi there Amer,
DI is one thing, but “DI frameworks” is quite another.
I for one am not a big fan of frameworks taking much control over this, however any tool/framework you want to use will “just work”,
it’s just creating objects after all - Akka is very simple in that sense, no magical registries or anything.

I would recommend reading this too: di-in-scala.github.io

Hope this helps

— Konrad
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages