org.eclipse.osgi.baseadaptor.hooks
Interface BundleFileWrapperFactoryHook
public interface BundleFileWrapperFactoryHook
A factory that wraps bundle file objects.
- Since:
- 3.2
- See Also:
BaseAdaptor.createBundleFile(Object, BaseData)
wrapBundleFile
BundleFile wrapBundleFile(BundleFile bundleFile,
java.lang.Object content,
BaseData data,
boolean base)
throws java.io.IOException
- Wraps a bundle file for the given content and base data. If the
specified bundle file should not be wrapped then null is returned
- Parameters:
bundleFile
- the bundle file to be wrappedcontent
- The object which contains the content of a bundle file.data
- The base data associated with the contentbase
- true if the content is for the base bundle (not an inner jar, directory etc.)
- Returns:
- a wrapped bundle file for the specified content, or null if the bundle content
is not wrapped.
- Throws:
java.io.IOException
- if an IO error occurs