KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > ui > jarpackager > IManifestProvider


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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 package org.eclipse.jdt.ui.jarpackager;
12
13 import java.util.jar.Manifest JavaDoc;
14
15 import org.eclipse.core.runtime.CoreException;
16
17 /**
18  * A manifest provider creates manifest files.
19  *
20  * Clients may implement this interface.
21  *
22  * @see java.util.jar.Manifest
23  * @since 2.0
24  */

25 public interface IManifestProvider {
26
27     /**
28      * Creates a manifest as defined by the <code>JarPackage</code>.
29      *
30      * @param jarPackage the JAR package specification
31      * @return the created manifest
32      * @throws CoreException if access to any resource described by the JAR package has failed
33      */

34     Manifest JavaDoc create(JarPackageData jarPackage) throws CoreException;
35
36     /**
37      * Creates a default manifest.
38      *
39      * @param manifestVersion a string denoting the manifest version
40      * @return the created manifest
41      */

42     Manifest JavaDoc createDefault(String JavaDoc manifestVersion);
43 }
44
Popular Tags