Package org.apache.pekko.osgi
Class OsgiActorSystemFactory
java.lang.Object
org.apache.pekko.osgi.OsgiActorSystemFactory
Factory class to create ActorSystem implementations in an OSGi environment. This mainly involves dealing with
bundle classloaders appropriately to ensure that configuration files and classes get loaded properly
-
Constructor Summary
ConstructorsConstructorDescriptionOsgiActorSystemFactory(org.osgi.framework.BundleContext context, scala.Option<ClassLoader> fallbackClassLoader, com.typesafe.config.Config config) -
Method Summary
Modifier and TypeMethodDescriptionstatic com.typesafe.config.Configcom.typesafe.config.ConfigactorSystemConfig(org.osgi.framework.BundleContext context) Strategy method to create the Config for the ActorSystem ensuring that the default/reference configuration is loaded from the pekko-actor bundle.actorSystemName(scala.Option<String> name) Determine the name for thepekko.actor.ActorSystemReturns a default value ofbundle-<bundle id>-ActorSystemis no name is being specifiedstatic OsgiActorSystemFactoryapply(org.osgi.framework.BundleContext context, com.typesafe.config.Config config) org.osgi.framework.BundleContextcontext()createActorSystem(String name) Creates thepekko.actor.ActorSystem, using the name specifiedcreateActorSystem(scala.Option<String> name) Creates thepekko.actor.ActorSystem, using the name specified.scala.Option<ClassLoader>static ClassLoaderClass loader of pekko-actor bundle.
-
Constructor Details
-
OsgiActorSystemFactory
public OsgiActorSystemFactory(org.osgi.framework.BundleContext context, scala.Option<ClassLoader> fallbackClassLoader, com.typesafe.config.Config config)
-
-
Method Details
-
$lessinit$greater$default$3
public static com.typesafe.config.Config $lessinit$greater$default$3() -
pekkoActorClassLoader
Class loader of pekko-actor bundle. -
apply
public static OsgiActorSystemFactory apply(org.osgi.framework.BundleContext context, com.typesafe.config.Config config) -
context
public org.osgi.framework.BundleContext context() -
fallbackClassLoader
-
createActorSystem
Creates thepekko.actor.ActorSystem, using the name specified -
createActorSystem
Creates thepekko.actor.ActorSystem, using the name specified.A default name (
bundle-<bundle id>-ActorSystem) is assigned when you pass alongNoneinstead. -
actorSystemConfig
public 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 pekko-actor bundle. Configuration files found in pekko-actor bundle -
actorSystemName
Determine the name for thepekko.actor.ActorSystemReturns a default value ofbundle-<bundle id>-ActorSystemis no name is being specified
-