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,


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
 

Field Detail

MODULE$

public static final CamelExtension$ MODULE$
Static reference to the singleton instance of this Scala object.

Constructor Detail

CamelExtension$

public CamelExtension$()
Method Detail

createExtension

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

Specified by:
createExtension in interface ExtensionId<Camel>

lookup

public ExtensionId<Camel> lookup()
Description copied from interface: ExtensionIdProvider
Returns the canonical ExtensionId for this Extension

Specified by:
lookup in interface ExtensionIdProvider

get

public Camel get(ActorSystem system)
Description copied from interface: ExtensionId
Returns an instance of the extension identified by this ExtensionId instance. Java API For extensions written in Scala that are to be used used from Java also, this method should be overridden to get correct return type.

 override def get(system: ActorSystem): TheExtension = super.get(system)
 

Specified by:
get in interface ExtensionId<Camel>