org.apache.camel.core.osgi.utils
Class BundleContextUtils

java.lang.Object
  extended by org.apache.camel.core.osgi.utils.BundleContextUtils

public final class BundleContextUtils
extends Object

Helper class


Method Summary
static org.osgi.framework.BundleContext getBundleContext(Class clazz)
          Retrieve the BundleContext that the given class has been loaded from.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBundleContext

public static org.osgi.framework.BundleContext getBundleContext(Class clazz)
Retrieve the BundleContext that the given class has been loaded from.

Parameters:
clazz - the class to find the bundle context from
Returns:
the bundle context or null if it can't be found


Apache CAMEL