org.apache.camel.test.blueprint
Class CamelBlueprintHelper
java.lang.Object
org.apache.camel.test.blueprint.CamelBlueprintHelper
public final class CamelBlueprintHelper
- extends Object
Helper for using Blueprint with Camel.
|
Method Summary |
static org.osgi.framework.BundleContext |
createBundleContext(String name,
String descriptors,
boolean includeTestBundle)
|
static org.osgi.framework.BundleContext |
createBundleContext(String name,
String descriptors,
String bundleFilter,
boolean includeTestBundle)
|
static void |
disposeBundleContext(org.osgi.framework.BundleContext bundleContext)
|
static
|
getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type)
|
static
|
getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type,
long timeout)
|
static
|
getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type,
String filter)
|
static
|
getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type,
String filter,
long timeout)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_TIMEOUT
public static final long DEFAULT_TIMEOUT
- See Also:
- Constant Field Values
BUNDLE_FILTER
public static final String BUNDLE_FILTER
- See Also:
- Constant Field Values
createBundleContext
public static org.osgi.framework.BundleContext createBundleContext(String name,
String descriptors,
boolean includeTestBundle)
throws Exception
- Throws:
Exception
createBundleContext
public static org.osgi.framework.BundleContext createBundleContext(String name,
String descriptors,
String bundleFilter,
boolean includeTestBundle)
throws Exception
- Throws:
Exception
disposeBundleContext
public static void disposeBundleContext(org.osgi.framework.BundleContext bundleContext)
throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
getOsgiService
public static <T> T getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type,
long timeout)
getOsgiService
public static <T> T getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type)
getOsgiService
public static <T> T getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type,
String filter)
getOsgiService
public static <T> T getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type,
String filter,
long timeout)
Apache CAMEL