Packages

o

akka.camel

CamelExtension

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

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CamelExtension
  2. ExtensionIdProvider
  3. ExtensionId
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. 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
  2. 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
    CamelExtensionExtensionId
  3. final def equals(other: Any): Boolean
    Definition Classes
    ExtensionId → AnyRef → Any
  4. 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
    CamelExtensionExtensionId
  5. final def hashCode(): Int
    Definition Classes
    ExtensionId → AnyRef → Any
  6. def lookup(): ExtensionId[Camel]

    Returns the canonical ExtensionId for this Extension

    Returns the canonical ExtensionId for this Extension

    Definition Classes
    CamelExtensionExtensionIdProvider