Sphereとともに

scalaとかplayframeworkとか。技術ブログにしたいなと。環境は Windows7x64, mac です。たまに声優さん情報が混ざります。最近ちょっとClojure触りました。

Scala Akka 適当訳

http://doc.akka.io/api/akka/2.0/akka/actor/ActorSystem$.html

 def apply (name: String): ActorSystem

Creates a new ActorSystem with the specified name, obtains the current ClassLoader by first inspecting the current threads' getContextClassLoader, then tries to walk the stack to find the callers class loader, then falls back to the ClassLoader associated with the ActorSystem class.

指定された名前で新規のActorSystemを作成し、
最初に現在のClassLoaderを検査することで現在のスレッドのgetContextClassLoaderを取得します。
そして、呼び出しもとのクラスローダーを見つけるためにスタックを探しまわります。
その後、ActorSystemクラスと関連付けられたClassLoaderに戻ります。

Scalaスケーラブルプログラミング第2版

Scalaスケーラブルプログラミング第2版