KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ungoverned > oscar > util > OscarConstants


1 /*
2  * Oscar - An implementation of the OSGi framework.
3  * Copyright (c) 2004, Richard S. Hall
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  *
10  * * Redistributions of source code must retain the above copyright
11  * notice, this list of conditions and the following disclaimer.
12  * * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in
14  * the documentation and/or other materials provided with the
15  * distribution.
16  * * Neither the name of the ungoverned.org nor the names of its
17  * contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32  * Contact: Richard S. Hall (heavy@ungoverned.org)
33  * Contributor(s):
34  *
35 **/

36 package org.ungoverned.oscar.util;
37
38 public interface OscarConstants extends org.osgi.framework.Constants
39 {
40     // Framework constants and values.
41
public static final String JavaDoc FRAMEWORK_VERSION_VALUE = "3.0";
42     public static final String JavaDoc FRAMEWORK_VENDOR_VALUE = "Oscar";
43
44     // Oscar constants and values.
45
public static final String JavaDoc OSCAR_VERSION_PROPERTY = "oscar.version";
46     public static final String JavaDoc OSCAR_VERSION_VALUE = "1.0.5";
47
48     // Miscellaneous manifest constants.
49
public static final String JavaDoc CLASS_PATH_SEPARATOR = ",";
50     public static final String JavaDoc CLASS_PATH_DOT = ".";
51     public static final String JavaDoc PACKAGE_SEPARATOR = ";";
52     public static final String JavaDoc PACKAGE_VERSION_TOKEN = "specification-version";
53     public static final String JavaDoc VERSION_SEGMENT_SEPARATOR = ".";
54     public static final int VERSION_SEGMENT_COUNT = 3;
55
56     // Miscellaneous OSGi constants.
57
public static final String JavaDoc BUNDLE_URL_PROTOCOL = "bundle";
58
59     // Miscellaneous Oscar system property names.
60
public static final String JavaDoc SYSTEM_PROPERTIES_PROP = "oscar.system.properties";
61     public static final String JavaDoc BUNDLE_PROPERTIES_PROP = "oscar.bundle.properties";
62     public static final String JavaDoc AUTO_INSTALL_PROP = "oscar.auto.install";
63     public static final String JavaDoc AUTO_START_PROP = "oscar.auto.start";
64     public static final String JavaDoc EMBEDDED_EXECUTION_PROP = "oscar.embedded.execution";
65     public static final String JavaDoc STRICT_OSGI_PROP = "oscar.strict.osgi";
66     public static final String JavaDoc CACHE_CLASS_PROP = "oscar.cache.class";
67     public static final String JavaDoc FRAMEWORK_STARTLEVEL_PROP
68         = "oscar.startlevel.framework";
69     public static final String JavaDoc BUNDLE_STARTLEVEL_PROP
70         = "oscar.startlevel.bundle";
71
72     // Start level-related constants.
73
public static final int FRAMEWORK_INACTIVE_STARTLEVEL = 0;
74     public static final int FRAMEWORK_DEFAULT_STARTLEVEL = 1;
75     public static final int SYSTEMBUNDLE_DEFAULT_STARTLEVEL = 0;
76     public static final int BUNDLE_DEFAULT_STARTLEVEL = 1;
77
78     // Miscellaneous properties values.
79
public static final String JavaDoc SYSTEM_PROPERTY_FILE_VALUE = "system.properties";
80     public static final String JavaDoc BUNDLE_PROPERTY_FILE_VALUE = "bundle.properties";
81     public static final String JavaDoc FAKE_URL_PROTOCOL_VALUE = "location:";
82     public static final String JavaDoc DEFAULT_DOMAIN_VALUE = "localdomain";
83     public static final String JavaDoc DEFAULT_HOSTNAME_VALUE = "localhost";
84 }
85
Popular Tags