Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scala “context.been”在哪里实现?_Scala_Intellij Idea_Akka - Fatal编程技术网

Scala “context.been”在哪里实现?

Scala “context.been”在哪里实现?,scala,intellij-idea,akka,Scala,Intellij Idea,Akka,Akka 2.3.11有一个特性ActorContext和方法 def become(behavior: Actor.Receive): Unit = become(behavior, discardOld = true) def become(behavior: Actor.Receive, discardOld: Boolean): Unit 然而,这只是一个宣言。我正在寻找一个实际的实现,但找不到它。即使IntelliJ也不能帮助实现它的特性“跳转到实现”,因为它只跳转到这个声明 我知道

Akka 2.3.11有一个
特性ActorContext
和方法

def become(behavior: Actor.Receive): Unit = become(behavior, discardOld = true)
def become(behavior: Actor.Receive, discardOld: Boolean): Unit
然而,这只是一个宣言。我正在寻找一个实际的实现,但找不到它。即使IntelliJ也不能帮助实现它的特性“跳转到实现”,因为它只跳转到这个声明

我知道
context.been
在一个演员身上做了什么,但我很好奇它是如何实现的。在哪里可以找到此实现


作为答案的一部分,我希望能够解释搜索此实现的过程以及IntelliJ为什么只跳到声明。

实现位于
akka.actor.ActorCell
中,与
ActorContext
位于同一源文件中


IntelliJ在找到这个实现时似乎有些困难,可能是因为
ActorCell
private[akka]

您需要知道运行中的actor系统中使用的
ActorContext
的具体类型。找出这个问题,你就会知道在哪里可以找到impl代码。