KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 2005, 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 creates bundle file objects.
21  * @see BaseAdaptor#createBundleFile(Object, BaseData)
22  * @since 3.2
23  */

24 public interface BundleFileFactoryHook {
25     /**
26      * Creates a bundle file for the given content and base data.
27      * @param content The object which contains the content of a bundle file.
28      * @param data The base data associated with the content
29      * @param base true if the content is for the base bundle (not an inner jar, directory etc.)
30      * @return a new bundle file for the specified content, or null if this factory cannot
31      * create a bundle file for the specified content.
32      * @throws IOException if an IO error occurs
33      */

34     BundleFile createBundleFile(Object JavaDoc content, BaseData data, boolean base) throws IOException JavaDoc;
35 }
36
Popular Tags