org.apache.aries.application.management.spi.convert
Interface BundleConverter
public interface BundleConverter
A BundleConverter turns a .jar that is not an OSGi bundle into a well formed OSGi bundle,
or a .war that is not a WAB into a WAB. The first converter to return a non-null result is
taken as having fully converted the bundle.
convert
BundleConversion convert(IDirectory parentEba,
IFile fileInEba)
throws ConversionException
- Parameters:
parentEba
- The root of the eba containing the artifact being converted -
a zip format file with .eba suffix, or an exploded directory.fileInEba
- The object within the eba to convert
- Returns:
- valid input stream or null if this converter does not support conversion of
this artifact type.
- Throws:
ConversionException
- if conversion was attempted but failed
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.