public final class BundleContextUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Map<String,Properties> |
findComponents(org.osgi.framework.BundleContext bundleContext,
org.apache.camel.CamelContext camelContext)
Finds the components available on the bundle context and camel context
|
static org.osgi.framework.BundleContext |
getBundleContext(Class<?> clazz)
Retrieve the BundleContext that the given class has been loaded from.
|
public static org.osgi.framework.BundleContext getBundleContext(Class<?> clazz)
clazz
- the class to find the bundle context fromnull
if it can't be foundpublic static Map<String,Properties> findComponents(org.osgi.framework.BundleContext bundleContext, org.apache.camel.CamelContext camelContext) throws IOException, org.apache.camel.util.LoadPropertiesException
IOException
org.apache.camel.util.LoadPropertiesException
Apache Camel