com.ibm.di.osgi
Class OSGiContainerHandle
java.lang.Object
com.ibm.di.osgi.OSGiContainerHandle
public class OSGiContainerHandle
- extends Object
Note: This class is for internal usage only. Any dependency from the
end-user will not be supported. Changes to this class will happen without a
warning.
- Since:
- 7.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setSystemBundleContext
public static void setSystemBundleContext(Object systemBundleContext,
Class<?> bundleContextClass)
getHandle
public static OSGiContainerHandle getHandle()
getHandle
public static OSGiContainerHandle getHandle(boolean autostart)
getServiceReference
public Object getServiceReference(String serviceClazz)
throws Throwable
- Throws:
Throwable
getServiceReferences
public Object[] getServiceReferences(String serviceClazz,
String filter)
throws Throwable
- Throws:
Throwable
getService
public Object getService(String serviceClazz)
throws Throwable
- Throws:
Throwable
getServices
public Object[] getServices(String serviceClazz,
String filter)
throws Throwable
- Throws:
Throwable
startBundle
public boolean startBundle(String symbolicName)
throws Throwable
- Parameters:
string
-
- Throws:
Throwable
startBundle
public boolean startBundle(Object bundleObject)
throws Throwable
- Throws:
Throwable
findBundles
public Object[] findBundles(String targetBundlesPrefix)
throws IllegalArgumentException,
SecurityException,
IllegalAccessException,
InvocationTargetException,
NoSuchMethodException,
ClassNotFoundException
- Throws:
IllegalArgumentException
SecurityException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
ClassNotFoundException
findBundles
public static Object[] findBundles(Object anyBundleContext,
Class<?> bundleContextClass,
String targetBundlesPrefix)
throws IllegalArgumentException,
SecurityException,
IllegalAccessException,
InvocationTargetException,
NoSuchMethodException,
ClassNotFoundException
- Throws:
IllegalArgumentException
SecurityException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
ClassNotFoundException
findBundle
public static Object findBundle(Object anyBundleContext,
Class<?> bundleContextClass,
String targetBundleSymbolicName)
throws IllegalArgumentException,
SecurityException,
IllegalAccessException,
InvocationTargetException,
NoSuchMethodException,
ClassNotFoundException
- Throws:
IllegalArgumentException
SecurityException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
ClassNotFoundException