org.apache.camel.spi
Class Container.Instance

java.lang.Object
  extended by org.apache.camel.spi.Container.Instance
Enclosing interface:
Container

public static final class Container.Instance
extends Object

The Instance class holds a Container singleton.


Method Summary
static Container get()
          Access the registered Container.
static void manage(CamelContext camelContext)
          Called by Camel when a CamelContext has been created.
static void set(Container container)
          Register the Container.
static void unmanage(CamelContext camelContext)
          Called by Camel when a CamelContext has been destroyed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static Container get()
Access the registered Container.

Returns:
the Container singleton

set

public static void set(Container container)
Register the Container.

Parameters:
container - the Container to register

manage

public static void manage(CamelContext camelContext)
Called by Camel when a CamelContext has been created.

Parameters:
camelContext - the newly created CamelContext

unmanage

public static void unmanage(CamelContext camelContext)
Called by Camel when a CamelContext has been destroyed.

Parameters:
camelContext - the CamelContext which has been destroyed


Apache Camel