Class BundleImpl

    • Method Detail

      • createContext

        protected final org.osgi.framework.BundleContext createContext()
      • getBundleContext

        public org.osgi.framework.BundleContext getBundleContext()
        Specified by:
        getBundleContext in interface org.osgi.framework.Bundle
      • start

        public void start​(int options)
                   throws org.osgi.framework.BundleException
        Specified by:
        start in interface org.osgi.framework.Bundle
        Throws:
        org.osgi.framework.BundleException
      • stop

        public void stop​(int options)
                  throws org.osgi.framework.BundleException
        Specified by:
        stop in interface org.osgi.framework.Bundle
        Throws:
        org.osgi.framework.BundleException
      • getLocation

        public String getLocation()
        Specified by:
        getLocation in interface org.osgi.framework.Bundle
      • getResource

        public URL getResource​(String name)
        Specified by:
        getResource in interface org.osgi.framework.Bundle
      • getEntry

        public URL getEntry​(String name)
        Specified by:
        getEntry in interface org.osgi.framework.Bundle
      • getPackageAdmin

        public static org.osgi.service.packageadmin.PackageAdmin getPackageAdmin()
      • getBundleId

        public long getBundleId()
        Specified by:
        getBundleId in interface org.osgi.framework.Bundle
      • getLastModified

        public long getLastModified()
        Specified by:
        getLastModified in interface org.osgi.framework.Bundle
      • getRegisteredServices

        public org.osgi.framework.ServiceReference[] getRegisteredServices()
        Specified by:
        getRegisteredServices in interface org.osgi.framework.Bundle
      • getServicesInUse

        public org.osgi.framework.ServiceReference[] getServicesInUse()
        Specified by:
        getServicesInUse in interface org.osgi.framework.Bundle
      • getState

        public int getState()
        Specified by:
        getState in interface org.osgi.framework.Bundle
      • getSymbolicName

        public String getSymbolicName()
        Specified by:
        getSymbolicName in interface org.osgi.framework.Bundle
      • hasPermission

        public boolean hasPermission​(Object permission)
        Specified by:
        hasPermission in interface org.osgi.framework.Bundle
      • getActivator

        public org.osgi.framework.BundleActivator getActivator()
                                                        throws org.osgi.framework.BundleException
        Throws:
        org.osgi.framework.BundleException
      • start

        public void start()
                   throws org.osgi.framework.BundleException
        Specified by:
        start in interface org.osgi.framework.Bundle
        Throws:
        org.osgi.framework.BundleException
      • stop

        public void stop()
                  throws org.osgi.framework.BundleException
        Specified by:
        stop in interface org.osgi.framework.Bundle
        Throws:
        org.osgi.framework.BundleException
      • shutdown

        public void shutdown()
                      throws org.osgi.framework.BundleException
        Throws:
        org.osgi.framework.BundleException
      • uninstall

        public void uninstall()
                       throws org.osgi.framework.BundleException
        Specified by:
        uninstall in interface org.osgi.framework.Bundle
        Throws:
        org.osgi.framework.BundleException
      • update

        public void update()
                    throws org.osgi.framework.BundleException
        Specified by:
        update in interface org.osgi.framework.Bundle
        Throws:
        org.osgi.framework.BundleException
      • update

        public void update​(InputStream in)
                    throws org.osgi.framework.BundleException
        Specified by:
        update in interface org.osgi.framework.Bundle
        Throws:
        org.osgi.framework.BundleException
      • getSignerCertificates

        public Map getSignerCertificates​(int signersType)
        Specified by:
        getSignerCertificates in interface org.osgi.framework.Bundle
      • getVersion

        public org.osgi.framework.Version getVersion()
        Specified by:
        getVersion in interface org.osgi.framework.Bundle