Class OSGiContainerHandle


  • public class OSGiContainerHandle
    extends java.lang.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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object findBundle​(java.lang.Object anyBundleContext, java.lang.Class<?> bundleContextClass, java.lang.String targetBundleSymbolicName)  
      static java.lang.Object[] findBundles​(java.lang.Object anyBundleContext, java.lang.Class<?> bundleContextClass, java.lang.String targetBundlesPrefix)  
      java.lang.Object[] findBundles​(java.lang.String targetBundlesPrefix)  
      static OSGiContainerHandle getHandle()  
      static OSGiContainerHandle getHandle​(boolean autostart)  
      java.lang.Object getService​(java.lang.String serviceClazz)  
      java.lang.Object getServiceReference​(java.lang.String serviceClazz)  
      java.lang.Object[] getServiceReferences​(java.lang.String serviceClazz, java.lang.String filter)  
      java.lang.Object[] getServices​(java.lang.String serviceClazz, java.lang.String filter)  
      static void setSystemBundleContext​(java.lang.Object systemBundleContext, java.lang.Class<?> bundleContextClass)  
      boolean startBundle​(java.lang.Object bundleObject)  
      boolean startBundle​(java.lang.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​(java.lang.Object systemBundleContext,
                                                  java.lang.Class<?> bundleContextClass)
      • getServiceReference

        public java.lang.Object getServiceReference​(java.lang.String serviceClazz)
                                             throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • getServiceReferences

        public java.lang.Object[] getServiceReferences​(java.lang.String serviceClazz,
                                                       java.lang.String filter)
                                                throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • getService

        public java.lang.Object getService​(java.lang.String serviceClazz)
                                    throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • getServices

        public java.lang.Object[] getServices​(java.lang.String serviceClazz,
                                              java.lang.String filter)
                                       throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • startBundle

        public boolean startBundle​(java.lang.String symbolicName)
                            throws java.lang.Throwable
        Parameters:
        string -
        Throws:
        java.lang.Throwable
      • startBundle

        public boolean startBundle​(java.lang.Object bundleObject)
                            throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • findBundles

        public java.lang.Object[] findBundles​(java.lang.String targetBundlesPrefix)
                                       throws java.lang.IllegalArgumentException,
                                              java.lang.SecurityException,
                                              java.lang.IllegalAccessException,
                                              java.lang.reflect.InvocationTargetException,
                                              java.lang.NoSuchMethodException,
                                              java.lang.ClassNotFoundException
        Throws:
        java.lang.IllegalArgumentException
        java.lang.SecurityException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.lang.NoSuchMethodException
        java.lang.ClassNotFoundException
      • findBundles

        public static java.lang.Object[] findBundles​(java.lang.Object anyBundleContext,
                                                     java.lang.Class<?> bundleContextClass,
                                                     java.lang.String targetBundlesPrefix)
                                              throws java.lang.IllegalArgumentException,
                                                     java.lang.SecurityException,
                                                     java.lang.IllegalAccessException,
                                                     java.lang.reflect.InvocationTargetException,
                                                     java.lang.NoSuchMethodException,
                                                     java.lang.ClassNotFoundException
        Throws:
        java.lang.IllegalArgumentException
        java.lang.SecurityException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.lang.NoSuchMethodException
        java.lang.ClassNotFoundException
      • findBundle

        public static java.lang.Object findBundle​(java.lang.Object anyBundleContext,
                                                  java.lang.Class<?> bundleContextClass,
                                                  java.lang.String targetBundleSymbolicName)
                                           throws java.lang.IllegalArgumentException,
                                                  java.lang.SecurityException,
                                                  java.lang.IllegalAccessException,
                                                  java.lang.reflect.InvocationTargetException,
                                                  java.lang.NoSuchMethodException,
                                                  java.lang.ClassNotFoundException
        Throws:
        java.lang.IllegalArgumentException
        java.lang.SecurityException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.lang.NoSuchMethodException
        java.lang.ClassNotFoundException