From f33c45090dfd03717148f15f03edaf72a7a3e2bd Mon Sep 17 00:00:00 2001 From: Gert Vanthienen Date: Tue, 12 Jun 2012 16:57:25 +0200 Subject: [PATCH] Update docs and use Option[String] in the activator instead of null --- akka-docs/additional/code/osgi/blueprint.xml | 12 ++++++++---- .../main/scala/akka/osgi/ActorSystemActivator.scala | 6 +++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/akka-docs/additional/code/osgi/blueprint.xml b/akka-docs/additional/code/osgi/blueprint.xml index f817da85b0..8fcedb990c 100644 --- a/akka-docs/additional/code/osgi/blueprint.xml +++ b/akka-docs/additional/code/osgi/blueprint.xml @@ -2,9 +2,13 @@ - - - - + + + + some.config { + key=value + } + + diff --git a/akka-osgi/src/main/scala/akka/osgi/ActorSystemActivator.scala b/akka-osgi/src/main/scala/akka/osgi/ActorSystemActivator.scala index ef04607976..7f60aebccc 100644 --- a/akka-osgi/src/main/scala/akka/osgi/ActorSystemActivator.scala +++ b/akka-osgi/src/main/scala/akka/osgi/ActorSystemActivator.scala @@ -9,10 +9,10 @@ import java.util.Properties * Abstract {@link BundleActivator} implementation to bootstrap and configure an {@link ActorSystem} in an * OSGi environment. */ -abstract class ActorSystemActivator(nameFor: (BundleContext) ⇒ String) extends BundleActivator { +abstract class ActorSystemActivator(nameFor: (BundleContext) ⇒ Option[String]) extends BundleActivator { - def this() = this({ context: BundleContext ⇒ null }) - def this(name: String) = this({ context: BundleContext ⇒ name }) + def this() = this({ context: BundleContext ⇒ None }) + def this(name: String) = this({ context: BundleContext ⇒ Some(name) }) var system: ActorSystem = null