本文介绍了Akka依赖注入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用程序中经常使用Guice。最近,我开始学习akka演员,感觉就像用它重构了我的应用程序。

I use Guice in my application quite a lot. Recently i start to learn akka actors and felt like refactoring my application with it.

但是,前期我已经想知道我所有的建议如何与演员一起工作。我继续在Google上搜索,有点混乱。

However upfront i am already wondering how all my guice will work with actors. I went on searching on google and it is kinda a bit messy.

我在此主题上找到的最新文档为:

The most up to date docs that i have found on the subject are theses:

不主张同一件事。

我必须承认,我仍然需要阅读很多东西,我正在学习akka。我没有做些例子,也没做些什么,但是我不想深入研究,以后再意识到我会有很多问题。

I must confess i still need to read a lot, i am at the beginning of learning akka. I Did few examples and red few things, but i don't want to go to deep into something to realize later that i will have many problems.

所以我的问题到今天为止,关于如何在依赖注入中使用Akka Actors的共识是什么。

So my question is as of today, what is the consensus on how to use Akka Actors with dependency injection.

可以进行哪种注射?我们可以将演员与对象/其他演员/连接起来吗?...

What kind of injection is possible ? Can we wire actors with object/other actors/....

无论如何,请以简洁的方式概述一些可以帮助我理解什么是可能的东西以及什么是什么的东西。最佳做法?

Can anyway please outline in a concise way something that can help me to understand what is possible and what is the best practices ?

推荐答案

最新的激活器具有。

这篇关于Akka依赖注入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 21:42