org.osgi.impl.bundle.obr.resource

Class 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: 95 $

Constructor Summary
BundleInfo(RepositoryImpl repository, File bundleJar)
Parse a zipFile from the file system.
BundleInfo(Manifest manifest)
Method Summary
ResourceImplbuild()
Convert the bundle to a Resource.

Constructor Detail

BundleInfo

public BundleInfo(RepositoryImpl repository, File bundleJar)
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)

Method Detail

build

public ResourceImpl build()
Convert the bundle to a Resource. All URIs are going to be abslute, but could be local.

Returns: the resource

Throws: Exception

Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.