org.osgi.impl.bundle.obr.resource
Class BundleInfo
java.lang.Object
org.osgi.impl.bundle.obr.resource.BundleInfo
public class BundleInfo
- extends Object
Convert a bundle to a generic resource description and store its local
dependencies (like for example a license file in the JAR) in a zip file.
- Version:
- $Revision: 44 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BundleInfo
public BundleInfo(RepositoryImpl repository,
File bundleJar)
throws Exception
- Parse a zipFile from the file system. We only need the manifest and the
localization. So a zip file is used to minimze memory consumption.
- Parameters:
bundleJar
- Path name
- Throws:
Exception
- Any errors that occur
BundleInfo
public BundleInfo(Manifest manifest)
throws Exception
- Throws:
Exception
build
public ResourceImpl build()
throws Exception
- Convert the bundle to a Resource. All URIs are going to be abslute, but
could be local.
- Returns:
- the resource
- Throws:
Exception
Copyright © 2011 Apache Software Foundation. All Rights Reserved.