?? constants.java
字號:
* <p>The attribute value is encoded in the Export-Package or * Import-Package Manifest header like: * <pre> * Import-Package: org.osgi.framework ; specification-version="1.1" * </pre> */ public static final String PACKAGE_SPECIFICATION_VERSION = "specification-version"; /** * Manifest header attribute (named "processor") identifying the processor * required to run native bundle code specified in the Bundle-NativeCode Manifest header). * * <p>The attribute value is encoded in the Bundle-NativeCode Manifest header like: * <pre> * Bundle-NativeCode: http.so ; processor=x86 ... * </pre> */ public static final String BUNDLE_NATIVECODE_PROCESSOR = "processor"; /** * Manifest header attribute (named "osname") identifying the * operating system required to run native bundle code specified in the Bundle-NativeCode * Manifest header). * <p>The attribute value is encoded in the Bundle-NativeCode Manifest header like: * <pre> * Bundle-NativeCode: http.so ; osname=Linux ... * </pre> */ public static final String BUNDLE_NATIVECODE_OSNAME = "osname"; /** * Manifest header attribute (named "osversion") identifying the * operating system version required to run native bundle code specified in the Bundle-NativeCode * Manifest header). * <p>The attribute value is encoded in the Bundle-NativeCode Manifest header like: * <pre> * Bundle-NativeCode: http.so ; osversion="2.34" ... * </pre> */ public static final String BUNDLE_NATIVECODE_OSVERSION = "osversion"; /** * Manifest header attribute (named "language") identifying the * language in which the native bundle code is written specified in the * Bundle-NativeCode Manifest header. See ISO 639 for possible values. * <p>The attribute value is encoded in the Bundle-NativeCode Manifest header like: * <pre> * Bundle-NativeCode: http.so ; language=nl_be ... * </pre> */ public static final String BUNDLE_NATIVECODE_LANGUAGE = "language"; /** * Manifest header (named "Bundle-RequiredExecutionEnvironment") * identifying the required * execution environment for the bundle. The service platform may run this * bundle if any of the execution environments named in this header matches * one of the execution environments it * implements. * * <p>The attribute value may be retrieved from the * <tt>Dictionary</tt> object returned by the <tt>Bundle.getHeaders</tt> method. * @since 1.2 */ public static final String BUNDLE_REQUIREDEXECUTIONENVIRONMENT = "Bundle-RequiredExecutionEnvironment"; /* * Framework environment properties. */ /** * Framework environment property (named "org.osgi.framework.version") * identifying the Framework version. * * <p>The value of this property may be retrieved by calling the * <tt>BundleContext.getProperty</tt> method. */ public static final String FRAMEWORK_VERSION = "org.osgi.framework.version"; /** * Framework environment property (named "org.osgi.framework.vendor") * identifying the Framework implementation vendor. * * <p>The value of this property may be retrieved by calling the * <tt>BundleContext.getProperty</tt> method. */ public static final String FRAMEWORK_VENDOR = "org.osgi.framework.vendor"; /** * Framework environment property (named "org.osgi.framework.language") * identifying the Framework implementation language (see ISO 639 for possible values). * * <p>The value of this property may be retrieved by calling the * <tt>BundleContext.getProperty</tt> method. */ public static final String FRAMEWORK_LANGUAGE = "org.osgi.framework.language"; /** * Framework environment property (named "org.osgi.framework.os.name") * identifying the Framework host-computer's operating system. * * <p>The value of this property may be retrieved by calling the <tt>BundleContext.getProperty</tt> method. */ public static final String FRAMEWORK_OS_NAME = "org.osgi.framework.os.name"; /** * Framework environment property (named "org.osgi.framework.os.version") * identifying the Framework host-computer's operating system version number. * * <p>The value of this property may be retrieved by calling the <tt>BundleContext.getProperty</tt> method. */ public static final String FRAMEWORK_OS_VERSION = "org.osgi.framework.os.version"; /** * Framework environment property (named "org.osgi.framework.processor") * identifying the Framework host-computer's processor name. * <p>The value of this property may be retrieved by calling the <tt>BundleContext.getProperty</tt> method. */ public static final String FRAMEWORK_PROCESSOR = "org.osgi.framework.processor"; /** * Framework environment property (named "org.osgi.framework.executionenvironment") * identifying execution environments provided by the Framework. * <p>The value of this property may be retrieved by calling the <tt>BundleContext.getProperty</tt> method. * @since 1.2 */ public static final String FRAMEWORK_EXECUTIONENVIRONMENT = "org.osgi.framework.executionenvironment"; /* * Service properties. */ /** * Service property (named "objectClass") * identifying all of the class names under which a service was registered in the Framework * (of type <tt>java.lang.String[]</tt>). * * <p>This property is set by the Framework when a service is registered. */ public static final String OBJECTCLASS = "objectClass"; /** * Service property (named "service.id") identifying a service's * registration number (of type <tt>java.lang.Long</tt>). * * <p>The value of this property is assigned by the Framework when a * service is registered. The Framework assigns a unique value that * is larger than all previously assigned values since the Framework was * started. * These values are NOT persistent across restarts of the Framework. */ public static final String SERVICE_ID = "service.id"; /** * Service property (named "service.pid") identifying a service's * persistent identifier. * * <p>This property may be supplied in the <tt>properties</tt> * <tt>Dictionary</tt> object passed to the <tt>BundleContext.registerService</tt> method. * * <p>A service's persistent identifier uniquely identifies the service * and persists across multiple Framework invocations. * * <p>By convention, every bundle has its own unique namespace, * starting with the bundle's identifier (see {@link Bundle#getBundleId}) * and followed by a dot (.). A bundle may use this as the prefix of the * persistent identifiers for the services it registers. */ public static final String SERVICE_PID = "service.pid"; /** * Service property (named "service.ranking") * identifying a service's ranking number (of type <tt>java.lang.Integer</tt>). * * <p>This property may be supplied in the <tt>properties * Dictionary</tt> object passed to the <tt>BundleContext.registerService</tt> method. * * <p>The service ranking is used by the Framework to determine the * <i>default</i> service to be returned from a call to the * {@link BundleContext#getServiceReference}method: * If more than one service implements the specified class, the <tt>ServiceReference</tt> object with * the highest ranking is returned. * * <p>The default ranking is zero (0). A service with a ranking of <tt>Integer.MAX_VALUE</tt> * is very likely to be returned as the default service, whereas a service with a ranking of * <tt>Integer.MIN_VALUE</tt> is very unlikely to be returned. * * <p>If the supplied property value is not of type <tt>java.lang.Integer</tt>, * it is deemed to have a ranking value of zero. */ public static final String SERVICE_RANKING = "service.ranking"; /** * Service property (named "service.vendor") identifying a service's vendor. * * <p>This property may be supplied in the properties <tt>Dictionary</tt> object passed to * the <tt>BundleContext.registerService</tt> method. */ public static final String SERVICE_VENDOR = "service.vendor"; /** * Service property (named "service.description") * identifying a service's description. * * <p>This property may be supplied in the properties <tt>Dictionary</tt> * object passed to the <tt>BundleContext.registerService</tt> method. */ public static final String SERVICE_DESCRIPTION = "service.description";}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -