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.
|
static String |
getComponentDocumentation(org.osgi.framework.BundleContext bundleContext,
org.apache.camel.CamelContext camelContext,
String componentName) |
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
IOExceptionorg.apache.camel.util.LoadPropertiesExceptionpublic static String getComponentDocumentation(org.osgi.framework.BundleContext bundleContext, org.apache.camel.CamelContext camelContext, String componentName) throws IOException
IOExceptionApache Camel