Class DefaultBundleReader

  • All Implemented Interfaces:
    org.codehaus.plexus.logging.LogEnabled, BundleReader

    @Component(role=BundleReader.class)
    public class DefaultBundleReader
    extends org.codehaus.plexus.logging.AbstractLogEnabled
    implements BundleReader
    • Constructor Detail

      • DefaultBundleReader

        public DefaultBundleReader()
    • Method Detail

      • loadManifest

        public OsgiManifest loadManifest​(File bundleLocation)
        Description copied from interface: BundleReader
        Load and cache OSGi manifest from path META-INF/MANIFEST.MF under the given location. If no META-INF/MANIFEST.MF is found but plugin.xml or fragment.xml is found, an attempt is made to convert it into an OSGi MANIFEST.
        Specified by:
        loadManifest in interface BundleReader
        Parameters:
        bundleLocation - can be either a directory or a jar file
        Returns:
        the OSGi MANIFEST, never null
      • setLocationRepository

        public void setLocationRepository​(File basedir)
      • getEntry

        public File getEntry​(File bundleLocation,
                             String path)
        Description copied from interface: BundleReader
        Returns bundle entry with given path or null if no such entry exists. If bundle is a jar, the entry will be extracted into a cached location.
        Specified by:
        getEntry in interface BundleReader
        Parameters:
        bundleLocation - can be either a directory or a jar file
        path - path relative to the bundle root. Paths starting with "external:" are ignored