Package akka.osgi

Class OsgiActorSystemFactory


  • public class OsgiActorSystemFactory
    extends java.lang.Object
    Creates the ActorSystem, using the name specified
    • Constructor Summary

      Constructors 
      Constructor Description
      OsgiActorSystemFactory​(org.osgi.framework.BundleContext context, scala.Option<java.lang.ClassLoader> fallbackClassLoader, com.typesafe.config.Config config)  
    • Constructor Detail

      • OsgiActorSystemFactory

        public OsgiActorSystemFactory​(org.osgi.framework.BundleContext context,
                                      scala.Option<java.lang.ClassLoader> fallbackClassLoader,
                                      com.typesafe.config.Config config)
    • Method Detail

      • $lessinit$greater$default$3

        public static com.typesafe.config.Config $lessinit$greater$default$3()
      • akkaActorClassLoader

        public static java.lang.ClassLoader akkaActorClassLoader()
        Class loader of akka-actor bundle.
        Returns:
        (undocumented)
      • apply

        public static OsgiActorSystemFactory apply​(org.osgi.framework.BundleContext context,
                                                   com.typesafe.config.Config config)
      • context

        public org.osgi.framework.BundleContext context()
      • fallbackClassLoader

        public scala.Option<java.lang.ClassLoader> fallbackClassLoader()
      • createActorSystem

        public ActorSystem createActorSystem​(java.lang.String name)
        Creates the ActorSystem, using the name specified
        Parameters:
        name - (undocumented)
        Returns:
        (undocumented)
      • createActorSystem

        public ActorSystem createActorSystem​(scala.Option<java.lang.String> name)
        Creates the ActorSystem, using the name specified.

        A default name (bundle-&lt;bundle id&gt;-ActorSystem) is assigned when you pass along None instead.

        Parameters:
        name - (undocumented)
        Returns:
        (undocumented)
      • 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 akka-actor bundle. Configuration files found in akka-actor bundle
        Parameters:
        context - (undocumented)
        Returns:
        (undocumented)
      • actorSystemName

        public java.lang.String actorSystemName​(scala.Option<java.lang.String> name)
        Determine the name for the ActorSystem Returns a default value of bundle-&lt;bundle id&gt;-ActorSystem is no name is being specified
        Parameters:
        name - (undocumented)
        Returns:
        (undocumented)