akka.camel
Class CamelExtension

java.lang.Object
  extended by akka.camel.CamelExtension
All Implemented Interfaces:
ExtensionId<Camel>, ExtensionIdProvider

public class CamelExtension
extends java.lang.Object
implements ExtensionId<Camel>, 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(...)
 

See Also:
ExtensionId,


Constructor Summary
CamelExtension()
           
 
Method Summary
static Camel createExtension(ExtendedActorSystem system)
          Creates a new instance of Camel and makes sure it gets stopped when the actor system is shutdown.
static Camel get(ActorSystem system)
           
static ExtensionId<Camel> lookup()
           
 
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, createExtension, equals, get, hashCode
 
Methods inherited from interface akka.actor.ExtensionIdProvider
lookup
 

Constructor Detail

CamelExtension

public CamelExtension()
Method Detail

createExtension

public static Camel createExtension(ExtendedActorSystem system)
Creates a new instance of Camel and makes sure it gets stopped when the actor system is shutdown.


lookup

public static ExtensionId<Camel> lookup()

get

public static Camel get(ActorSystem system)