Fix bug where ActorSystems created via OsgiActorSystemFactory(ctx).createActorSystem fail to load akka.event classes unless bundle imports akka.event package

(cherry picked from commit 3070343a5de78cd7b363e93a09d56565b1e6df9b)
This commit is contained in:
Michael Pilquist 2012-11-15 21:28:40 -05:00 committed by Patrik Nordwall
parent 1d768fa10c
commit 739583e384

View file

@ -17,7 +17,7 @@ class OsgiActorSystemFactory(val context: BundleContext) {
/*
* Classloader that delegates to the bundle for which the factory is creating an ActorSystem
*/
private val classloader = BundleDelegatingClassLoader(context)
private val classloader = new BundleDelegatingClassLoader(context.getBundle, Some(classOf[ActorSystem].getClassLoader))
/**
* Creates the [[akka.actor.ActorSystem]], using the name specified