org.apache.camel.osgi
Class CamelContextFactory

java.lang.Object
  extended by org.apache.camel.osgi.CamelContextFactory
All Implemented Interfaces:
org.springframework.osgi.context.BundleContextAware
Direct Known Subclasses:
SpringCamelContextFactory

public class CamelContextFactory
extends Object
implements org.springframework.osgi.context.BundleContextAware

This factory just create a DefaultContext in OSGi without any spring application context involved.


Constructor Summary
CamelContextFactory()
           
 
Method Summary
 org.apache.camel.impl.DefaultCamelContext createContext()
           
 org.osgi.framework.BundleContext getBundleContext()
           
 org.apache.camel.spi.Registry getRegistry()
           
protected  org.apache.camel.impl.DefaultCamelContext newCamelContext()
           
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 void setRegistry(org.apache.camel.spi.Registry registry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelContextFactory

public CamelContextFactory()
Method Detail

getBundleContext

public org.osgi.framework.BundleContext getBundleContext()

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
Specified by:
setBundleContext in interface org.springframework.osgi.context.BundleContextAware

getRegistry

public org.apache.camel.spi.Registry getRegistry()

setRegistry

public void setRegistry(org.apache.camel.spi.Registry registry)

newCamelContext

protected org.apache.camel.impl.DefaultCamelContext newCamelContext()

createContext

public org.apache.camel.impl.DefaultCamelContext createContext()


Apache Camel