KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensugar > cube > packageAdmin > PackageExport


1 /*
2  * JEFFREE: Java(TM) Embedded Framework FREE
3  * Copyright (C) 1999-2003 - Opensugar
4  *
5  * The contents of this file are subject to the Jeffree Public License,
6  * as defined by the file JEFFREE_LICENSE.TXT
7  *
8  * You may not use this file except in compliance with the License.
9  * You may obtain a copy of the License on the Objectweb web site
10  * (www.objectweb.org).
11  *
12  * Software distributed under the License is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
14  * the specific terms governing rights and limitations under the License.
15  *
16  * The Original Code is JEFFREE, including the java package com.opensugar.cube,
17  * released January 1, 2003.
18  *
19  * The Initial Developer of the Original Code is Opensugar.
20  * The Original Code is Copyright Opensugar.
21  * All Rights Reserved.
22  *
23  * Initial developer(s): Pierre Scokaert (Opensugar)
24  * Contributor(s):
25  */

26
27 package com.opensugar.cube.packageAdmin;
28
29 import com.opensugar.cube.BundleClassLoader;
30
31 import org.osgi.framework.Bundle;
32
33 public class PackageExport implements HasVersion {
34
35    private String JavaDoc name;
36    private String JavaDoc specificationVersion;
37    private Bundle exportingBundle;
38    private BundleClassLoader classLoader;
39
40    public PackageExport( String JavaDoc name, String JavaDoc specificationVersion, Bundle exportingBundle, BundleClassLoader classLoader ) {
41       this.name = name;
42       this.specificationVersion = specificationVersion;
43       this.exportingBundle = exportingBundle;
44       this.classLoader = classLoader;
45    }
46
47    public String JavaDoc getName() {
48       return name;
49    }
50
51    public String JavaDoc getSpecificationVersion() {
52       return specificationVersion;
53    }
54
55    public Bundle getExportingBundle() {
56       return exportingBundle;
57    }
58
59    public BundleClassLoader getClassLoader() {
60       return classLoader;
61    }
62
63 }
64
Popular Tags