public class CamelExtension$ extends java.lang.Object implements ExtensionId<Camel>, ExtensionIdProvider
For example:
val system = ActorSystem("some system")
val camel = CamelExtension(system)
camel.context.addRoutes(...)
ExtensionId
,
ExtensionIdProvider
Modifier and Type | Field and Description |
---|---|
static CamelExtension$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
CamelExtension$() |
Modifier and Type | Method and Description |
---|---|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, equals, hashCode
public static final CamelExtension$ MODULE$
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)