public class OsgiActorSystemFactory
extends java.lang.Object
Constructor and Description |
---|
OsgiActorSystemFactory(org.osgi.framework.BundleContext context,
scala.Option<java.lang.ClassLoader> fallbackClassLoader,
com.typesafe.config.Config config) |
Modifier and Type | Method and Description |
---|---|
com.typesafe.config.Config |
actorSystemConfig(org.osgi.framework.BundleContext context)
Strategy method to create the Config for the ActorSystem
ensuring that the default/reference configuration is loaded from the akka-actor bundle.
|
java.lang.String |
actorSystemName(scala.Option<java.lang.String> name)
Determine the name for the
ActorSystem
Returns a default value of bundle-<bundle id>-ActorSystem is no name is being specified |
static java.lang.ClassLoader |
akkaActorClassLoader()
Class loader of akka-actor bundle.
|
static OsgiActorSystemFactory |
apply(org.osgi.framework.BundleContext context,
com.typesafe.config.Config config) |
org.osgi.framework.BundleContext |
context() |
ActorSystem |
createActorSystem(scala.Option<java.lang.String> name)
Creates the
ActorSystem , using the name specified. |
ActorSystem |
createActorSystem(java.lang.String name)
Creates the
ActorSystem , using the name specified |
scala.Option<java.lang.ClassLoader> |
fallbackClassLoader() |
public OsgiActorSystemFactory(org.osgi.framework.BundleContext context, scala.Option<java.lang.ClassLoader> fallbackClassLoader, com.typesafe.config.Config config)
public static java.lang.ClassLoader akkaActorClassLoader()
public static OsgiActorSystemFactory apply(org.osgi.framework.BundleContext context, com.typesafe.config.Config config)
public org.osgi.framework.BundleContext context()
public scala.Option<java.lang.ClassLoader> fallbackClassLoader()
public ActorSystem createActorSystem(java.lang.String name)
ActorSystem
, using the name specifiedname
- (undocumented)public ActorSystem createActorSystem(scala.Option<java.lang.String> name)
ActorSystem
, using the name specified.
A default name (bundle-<bundle id>-ActorSystem
) is assigned when you pass along None
instead.
name
- (undocumented)public com.typesafe.config.Config actorSystemConfig(org.osgi.framework.BundleContext context)
context
- (undocumented)public java.lang.String actorSystemName(scala.Option<java.lang.String> name)
ActorSystem
Returns a default value of bundle-<bundle id>-ActorSystem
is no name is being specifiedname
- (undocumented)