|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.camel.CamelExtension$
public class CamelExtension$
This class can be used to get hold of an instance of the Camel class bound to the actor system.
For example:
val system = ActorSystem("some system")
val camel = CamelExtension(system)
camel.context.addRoutes(...)
ExtensionId
,
Field Summary | |
---|---|
static CamelExtension$ |
MODULE$
Static reference to the singleton instance of this Scala object. |
Constructor Summary | |
---|---|
CamelExtension$()
|
Method Summary | |
---|---|
Camel |
createExtension(ExtendedActorSystem system)
Creates a new instance of Camel and makes sure it gets stopped when the actor system is shutdown. |
Camel |
get(ActorSystem system)
Returns an instance of the extension identified by this ExtensionId instance. |
ExtensionId<Camel> |
lookup()
Returns the canonical ExtensionId for this Extension |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface akka.actor.ExtensionId |
---|
apply, equals, hashCode |
Field Detail |
---|
public static final CamelExtension$ MODULE$
Constructor Detail |
---|
public CamelExtension$()
Method Detail |
---|
public Camel createExtension(ExtendedActorSystem system)
createExtension
in interface ExtensionId<Camel>
system
- (undocumented)
public ExtensionId<Camel> lookup()
ExtensionIdProvider
lookup
in interface ExtensionIdProvider
public Camel get(ActorSystem system)
ExtensionId
override def get(system: ActorSystem): TheExtension = super.get(system)
get
in interface ExtensionId<Camel>
system
- (undocumented)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |