public final class CamelBlueprintHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BUNDLE_FILTER |
static String |
BUNDLE_VERSION |
static long |
DEFAULT_TIMEOUT |
Modifier and Type | Method and Description |
---|---|
static org.osgi.framework.BundleContext |
createBundleContext(String name,
String descriptors,
boolean includeTestBundle) |
static org.osgi.framework.BundleContext |
createBundleContext(String name,
String descriptors,
boolean includeTestBundle,
String bundleFilter,
String testBundleVersion) |
static org.osgi.framework.BundleContext |
createBundleContext(String name,
String descriptors,
boolean includeTestBundle,
String bundleFilter,
String testBundleVersion,
String testBundleDirectives) |
static org.osgi.framework.BundleContext |
createBundleContext(String name,
String bundleFilter,
org.ops4j.pax.swissbox.tinybundles.core.TinyBundle bundle) |
protected static org.ops4j.pax.swissbox.tinybundles.core.TinyBundle |
createTestBundle(String name,
String version,
String descriptors) |
static void |
disposeBundleContext(org.osgi.framework.BundleContext bundleContext) |
static <T> T |
getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type) |
static <T> T |
getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type,
long timeout) |
static <T> T |
getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type,
String filter) |
static <T> T |
getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type,
String filter,
long timeout) |
public static final long DEFAULT_TIMEOUT
public static final String BUNDLE_FILTER
public static final String BUNDLE_VERSION
public static org.osgi.framework.BundleContext createBundleContext(String name, String descriptors, boolean includeTestBundle) throws Exception
Exception
public static org.osgi.framework.BundleContext createBundleContext(String name, String descriptors, boolean includeTestBundle, String bundleFilter, String testBundleVersion) throws Exception
Exception
public static org.osgi.framework.BundleContext createBundleContext(String name, String descriptors, boolean includeTestBundle, String bundleFilter, String testBundleVersion, String testBundleDirectives) throws Exception
Exception
public static org.osgi.framework.BundleContext createBundleContext(String name, String bundleFilter, org.ops4j.pax.swissbox.tinybundles.core.TinyBundle bundle) throws Exception
Exception
public static void disposeBundleContext(org.osgi.framework.BundleContext bundleContext) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public static <T> T getOsgiService(org.osgi.framework.BundleContext bundleContext, Class<T> type, long timeout)
public static <T> T getOsgiService(org.osgi.framework.BundleContext bundleContext, Class<T> type)
public static <T> T getOsgiService(org.osgi.framework.BundleContext bundleContext, Class<T> type, String filter)
public static <T> T getOsgiService(org.osgi.framework.BundleContext bundleContext, Class<T> type, String filter, long timeout)
protected static org.ops4j.pax.swissbox.tinybundles.core.TinyBundle createTestBundle(String name, String version, String descriptors) throws FileNotFoundException, MalformedURLException
Apache CAMEL