⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 constants.java

📁 OSGI这是一个中间件,与UPNP齐名,是用于移植到嵌入式平台之上
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
     * 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 &quot;processor&quot;) 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 &quot;osname&quot;) 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 &quot;osversion&quot;) 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 &quot;language&quot;) 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 &quot;Bundle-RequiredExecutionEnvironment&quot;)     * 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 &quot;org.osgi.framework.version&quot;)     * 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 &quot;org.osgi.framework.vendor&quot;)     * 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 &quot;org.osgi.framework.language&quot;)     * 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 &quot;org.osgi.framework.os.name&quot;)     * 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 &quot;org.osgi.framework.os.version&quot;)     * 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 &quot;org.osgi.framework.processor&quot;)     * 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 &quot;org.osgi.framework.executionenvironment&quot;)     * 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 &quot;objectClass&quot;)     * 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 &quot;service.id&quot;) 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 &quot;service.pid&quot;) 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 &quot;service.ranking&quot;)     * 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 &quot;service.vendor&quot;) 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 &quot;service.description&quot;)     * 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 + -