object CamelExtension extends ExtensionId[Camel] with ExtensionIdProvider
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(...)
- Source
- Camel.scala
- See also
akka.actor.ExtensionId
akka.actor.ExtensionIdProvider
- Alphabetic
- By Inheritance
- CamelExtension
- ExtensionIdProvider
- ExtensionId
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply(system: ClassicActorSystemProvider): Camel
Returns an instance of the extension identified by this ExtensionId instance.
Returns an instance of the extension identified by this ExtensionId instance.
- Definition Classes
- ExtensionId
-
def
apply(system: ActorSystem): Camel
Returns an instance of the extension identified by this ExtensionId instance.
Returns an instance of the extension identified by this ExtensionId instance.
- Definition Classes
- ExtensionId
-
def
createExtension(system: ExtendedActorSystem): Camel
Creates a new instance of Camel and makes sure it gets stopped when the actor system is shutdown.
Creates a new instance of Camel and makes sure it gets stopped when the actor system is shutdown.
- Definition Classes
- CamelExtension → ExtensionId
-
final
def
equals(other: Any): Boolean
- Definition Classes
- ExtensionId → AnyRef → Any
-
def
get(system: ActorSystem): Camel
Returns an instance of the extension identified by this ExtensionId instance.
Returns an instance of the extension identified by this ExtensionId instance. Java API For extensions written in Scala that are to be used from Java also, this method should be overridden to get correct return type.
override def get(system: ActorSystem): TheExtension = super.get(system)
- Definition Classes
- CamelExtension → ExtensionId
-
def
get(system: ClassicActorSystemProvider): Camel
Returns an instance of the extension identified by this ExtensionId instance.
Returns an instance of the extension identified by this ExtensionId instance. Java API For extensions written in Scala that are to be used from Java also, this method should be overridden to get correct return type.
override def get(system: ClassicActorSystemProvider): TheExtension = super.get(system)
- Definition Classes
- ExtensionId
-
final
def
hashCode(): Int
- Definition Classes
- ExtensionId → AnyRef → Any
-
def
lookup(): ExtensionId[Camel]
Returns the canonical ExtensionId for this Extension
Returns the canonical ExtensionId for this Extension
- Definition Classes
- CamelExtension → ExtensionIdProvider