public class CamelExtension extends java.lang.Object implements akka.actor.ExtensionId<Camel>, akka.actor.ExtensionIdProvider
For example:
val system = ActorSystem("some system")
val camel = CamelExtension(system)
camel.context.addRoutes(...)
ExtensionId
,
ExtensionIdProvider
Constructor and Description |
---|
CamelExtension() |
Modifier and Type | Method and Description |
---|---|
static Camel |
createExtension(akka.actor.ExtendedActorSystem system)
Creates a new instance of Camel and makes sure it gets stopped when the actor system is shutdown.
|
static Camel |
get(akka.actor.ActorSystem system) |
static akka.actor.ExtensionId<Camel> |
lookup() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static Camel createExtension(akka.actor.ExtendedActorSystem system)
system
- (undocumented)public static akka.actor.ExtensionId<Camel> lookup()
public static Camel get(akka.actor.ActorSystem system)