KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > osgi > baseadaptor > hooks > BundleFileWrapperFactoryHook


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.osgi.baseadaptor.hooks;
13
14 import java.io.IOException JavaDoc;
15 import org.eclipse.osgi.baseadaptor.BaseAdaptor;
16 import org.eclipse.osgi.baseadaptor.BaseData;
17 import org.eclipse.osgi.baseadaptor.bundlefile.BundleFile;
18
19 /**
20  * A factory that wraps bundle file objects.
21  * @see BaseAdaptor#createBundleFile(Object, BaseData)
22  * @since 3.2
23  */

24 public interface BundleFileWrapperFactoryHook {
25     /**
26      * Wraps a bundle file for the given content and base data. If the
27      * specified bundle file should not be wrapped then null is returned
28      * @param BundleFile the bundle file to be wrapped
29      * @param content The object which contains the content of a bundle file.
30      * @param data The base data associated with the content
31      * @param base true if the content is for the base bundle (not an inner jar, directory etc.)
32      * @return a wrapped bundle file for the specified content, or null if the bundle content
33      * is not wrapped.
34      * @throws IOException if an IO error occurs
35      */

36     BundleFile wrapBundleFile(BundleFile bundleFile, Object JavaDoc content, BaseData data, boolean base) throws IOException JavaDoc;
37
38 }
39
Popular Tags