org.apache.camel.cdi.internal
Class CamelContextMap

java.lang.Object
  extended by org.apache.camel.cdi.internal.CamelContextMap

@ApplicationScoped
public class CamelContextMap
extends Object

A helper class to be able to resolve CamelContext instances by their name


Constructor Summary
CamelContextMap()
           
 
Method Summary
 org.apache.camel.CamelContext getCamelContext(String name)
          Returns the CamelContext for the given context name
 Map<String,org.apache.camel.CamelContext> getCamelContextMap()
           
 org.apache.camel.CamelContext getMandatoryCamelContext(String contextName)
          Returns the CamelContext for the given name or throw an exception
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelContextMap

public CamelContextMap()
Method Detail

start

@PostConstruct
public void start()

getCamelContext

public org.apache.camel.CamelContext getCamelContext(String name)
Returns the CamelContext for the given context name


getMandatoryCamelContext

public org.apache.camel.CamelContext getMandatoryCamelContext(String contextName)
Returns the CamelContext for the given name or throw an exception


getCamelContextMap

public Map<String,org.apache.camel.CamelContext> getCamelContextMap()


Apache Camel