com.ibm.di.osgi
Class OSGiContainerHandle

java.lang.Object
  extended by 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

Method Summary
static Object findBundle(Object anyBundleContext, Class<?> bundleContextClass, String targetBundleSymbolicName)
           
static Object[] findBundles(Object anyBundleContext, Class<?> bundleContextClass, String targetBundlesPrefix)
           
 Object[] findBundles(String targetBundlesPrefix)
           
static OSGiContainerHandle getHandle()
           
static OSGiContainerHandle getHandle(boolean autostart)
           
 Object getService(String serviceClazz)
           
 Object getServiceReference(String serviceClazz)
           
 Object[] getServiceReferences(String serviceClazz, String filter)
           
 Object[] getServices(String serviceClazz, String filter)
           
static void setSystemBundleContext(Object systemBundleContext, Class<?> bundleContextClass)
           
 boolean startBundle(Object bundleObject)
           
 boolean startBundle(String symbolicName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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