Class ShimBundle

  • All Implemented Interfaces:
    java.lang.Comparable<org.osgi.framework.Bundle>, org.osgi.framework.Bundle

    public class ShimBundle
    extends java.lang.Object
    implements org.osgi.framework.Bundle
    • Field Summary

      • Fields inherited from interface org.osgi.framework.Bundle

        ACTIVE, INSTALLED, RESOLVED, SIGNERS_ALL, SIGNERS_TRUSTED, START_ACTIVATION_POLICY, START_TRANSIENT, STARTING, STOP_TRANSIENT, STOPPING, UNINSTALLED
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <A> A adapt​(java.lang.Class<A> type)  
      int compareTo​(org.osgi.framework.Bundle o)  
      java.util.Enumeration<java.net.URL> findEntries​(java.lang.String path, java.lang.String filePattern, boolean recurse)  
      org.osgi.framework.BundleContext getBundleContext()  
      long getBundleId()  
      java.io.File getDataFile​(java.lang.String filename)  
      java.net.URL getEntry​(java.lang.String path)  
      java.util.Enumeration<java.lang.String> getEntryPaths​(java.lang.String path)  
      java.util.Dictionary<java.lang.String,​java.lang.String> getHeaders()  
      java.util.Dictionary<java.lang.String,​java.lang.String> getHeaders​(java.lang.String locale)  
      long getLastModified()  
      java.lang.String getLocation()  
      org.osgi.framework.ServiceReference<?>[] getRegisteredServices()  
      java.net.URL getResource​(java.lang.String name)  
      java.util.Enumeration<java.net.URL> getResources​(java.lang.String name)  
      org.osgi.framework.ServiceReference<?>[] getServicesInUse()  
      java.util.Map<java.security.cert.X509Certificate,​java.util.List<java.security.cert.X509Certificate>> getSignerCertificates​(int signersType)  
      int getState()  
      java.lang.String getSymbolicName()  
      org.osgi.framework.Version getVersion()  
      boolean hasPermission​(java.lang.Object permission)  
      java.lang.Class<?> loadClass​(java.lang.String name)  
      void start()  
      void start​(int options)  
      void stop()  
      void stop​(int options)  
      java.lang.String toString()  
      void uninstall()  
      void update()  
      void update​(java.io.InputStream input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getBundleContext

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • loadClass

        public java.lang.Class<?> loadClass​(java.lang.String name)
                                     throws java.lang.ClassNotFoundException
        Specified by:
        loadClass in interface org.osgi.framework.Bundle
        Throws:
        java.lang.ClassNotFoundException
      • getBundleId

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

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

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

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

        public void stop​(int options)
        Specified by:
        stop in interface org.osgi.framework.Bundle
      • getState

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

        public java.util.Dictionary<java.lang.String,​java.lang.String> getHeaders()
        Specified by:
        getHeaders in interface org.osgi.framework.Bundle
      • getHeaders

        public java.util.Dictionary<java.lang.String,​java.lang.String> getHeaders​(java.lang.String locale)
        Specified by:
        getHeaders in interface org.osgi.framework.Bundle
      • getSymbolicName

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

        public java.net.URL getEntry​(java.lang.String path)
        Specified by:
        getEntry in interface org.osgi.framework.Bundle
      • getResource

        public java.net.URL getResource​(java.lang.String name)
        Specified by:
        getResource in interface org.osgi.framework.Bundle
      • getResources

        public java.util.Enumeration<java.net.URL> getResources​(java.lang.String name)
                                                         throws java.io.IOException
        Specified by:
        getResources in interface org.osgi.framework.Bundle
        Throws:
        java.io.IOException
      • getEntryPaths

        public java.util.Enumeration<java.lang.String> getEntryPaths​(java.lang.String path)
        Specified by:
        getEntryPaths in interface org.osgi.framework.Bundle
      • findEntries

        public java.util.Enumeration<java.net.URL> findEntries​(java.lang.String path,
                                                               java.lang.String filePattern,
                                                               boolean recurse)
        Specified by:
        findEntries in interface org.osgi.framework.Bundle
      • getLocation

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

        public java.io.File getDataFile​(java.lang.String filename)
        Specified by:
        getDataFile in interface org.osgi.framework.Bundle
      • adapt

        public <A> A adapt​(java.lang.Class<A> type)
        Specified by:
        adapt in interface org.osgi.framework.Bundle
      • getSignerCertificates

        public java.util.Map<java.security.cert.X509Certificate,​java.util.List<java.security.cert.X509Certificate>> getSignerCertificates​(int signersType)
        Specified by:
        getSignerCertificates 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
      • hasPermission

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

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

        public void update​(java.io.InputStream input)
        Specified by:
        update in interface org.osgi.framework.Bundle
      • update

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

        public void uninstall()
        Specified by:
        uninstall in interface org.osgi.framework.Bundle
      • getLastModified

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

        public int compareTo​(@NotNull
                             org.osgi.framework.Bundle o)
        Specified by:
        compareTo in interface java.lang.Comparable<org.osgi.framework.Bundle>