亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? bundlecontext.java

?? OSGI 的 源碼實現,采用JAVA書寫
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* * $Header: /cvshome/repository/org/osgi/framework/BundleContext.java,v 1.21 2002/11/14 13:49:34 pkriens Exp $ * * Copyright (c) The Open Services Gateway Initiative (2000, 2002). * All Rights Reserved. * * Implementation of certain elements of the Open Services Gateway Initiative * (OSGI) Specification may be subject to third party intellectual property * rights, including without limitation, patent rights (such a third party may * or may not be a member of OSGi). OSGi is not responsible and shall not be * held responsible in any manner for identifying or failing to identify any or * all such third party intellectual property rights. * * This document and the information contained herein are provided on an "AS * IS" basis and OSGI DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING * BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL * NOT INFRINGE ANY RIGHTS AND ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL OSGI BE LIABLE FOR ANY * LOSS OF PROFITS, LOSS OF BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF * BUSINESS, OR FOR DIRECT, INDIRECT, SPECIAL OR EXEMPLARY, INCIDENTIAL, * PUNITIVE OR CONSEQUENTIAL DAMAGES OF ANY KIND IN CONNECTION WITH THIS * DOCUMENT OR THE INFORMATION CONTAINED HEREIN, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH LOSS OR DAMAGE. * * All Company, brand and product names may be trademarks that are the sole * property of their respective owners. All rights reserved. */package org.osgi.framework;import java.io.File;import java.io.InputStream;import java.util.Dictionary;/** * A bundle's execution context within the Framework. * The context is used to grant access to other methods so that this bundle can interact * with the Framework. * * <p><tt>BundleContext</tt> methods allow a bundle to: * <ul> * <li>Subscribe to events published by the Framework. * <li>Register service objects with the Framework service registry. * <li>Retrieve <tt>ServiceReferences</tt> from the Framework service registry. * <li>Get and release service objects for a referenced service. * <li>Install new bundles in the Framework. * <li>Get the list of bundles installed in the Framework. * <li>Get the {@link Bundle}object for a bundle. * <li>Create <tt>File</tt> objects for files in a * persistent storage area provided for the bundle by the Framework. * </ul> * * <p>A <tt>BundleContext</tt> object will be created and provided * to this bundle when it is started using the {@link BundleActivator#start}method. * The same <tt>BundleContext</tt> object will be passed to this bundle when it is * stopped using the {@link BundleActivator#stop}method. * <tt>BundleContext</tt> is generally for the private use of this bundle and * is not meant to be shared with other bundles in the OSGi environment. <tt>BundleContext</tt> is used * when resolving <tt>ServiceListener</tt>s and <tt>EventListener</tt> objects. * * <p> The <tt>BundleContext</tt> object is only valid during an execution instance of * this bundle; that is, during the period from when this bundle is called by * <tt>BundleActivator.start</tt> until after this bundle is called and returns from * <tt>BundleActivator.stop</tt> (or if <tt>BundleActivator.start</tt> terminates with an exception). * If the <tt>BundleContext</tt> object is used subsequently, * an <tt>IllegalStateException</tt> must be thrown. * When this bundle is restarted, a new <tt>BundleContext</tt> object must be created. * * <p>The Framework is the only entity that can create <tt>BundleContext</tt> * objects and they are only valid within the Framework that created them. * * @version $Revision: 1.21 $ * @author Open Services Gateway Initiative */public abstract interface BundleContext{    /**	 * Returns the value of the specified property.	 * If the key is not found in the Framework properties, the system	 * properties are then searched. The method returns	 * <tt>null</tt> if the property is not found.	 *	 * <p>The Framework defines the following standard property keys:</p>	 * <ul>	 * <li>{@link Constants#FRAMEWORK_VERSION} - The OSGi Framework version.</li>	 * <li>{@link Constants#FRAMEWORK_VENDOR}  - The Framework implementation vendor.</li>	 * <li>{@link Constants#FRAMEWORK_LANGUAGE} - The language being used. See ISO 639 for possible values. </li>	 * <li>{@link Constants#FRAMEWORK_OS_NAME} - The host computer operating system.</li>	 * <li>{@link Constants#FRAMEWORK_OS_VERSION} - The host computer operating system version number.</li>	 * <li>{@link Constants#FRAMEWORK_PROCESSOR} - The host computer processor name.</li>	 * </ul>	 * <p>All bundles must have permission to read these properties.	 *	 * <p>Note: The last four standard properties are used by the	 * {@link Constants#BUNDLE_NATIVECODE}<tt>Manifest</tt> header's matching	 * algorithm for selecting native language code.	 *	 * @param key The name of the requested property.	 * @return The value of the requested property, or <tt>null</tt> if the property is undefined.	 * @exception java.lang.SecurityException If the caller does not have	 * the appropriate <tt>PropertyPermission</tt> to read the property,	 * and the Java Runtime Environment supports permissions.	 */    public abstract String getProperty(String key);    /**	 * Returns the <tt>Bundle</tt> object for this context bundle.	 *	 * <p>The context bundle is defined as the bundle that was assigned	 * this <tt>BundleContext</tt> in its <tt>BundleActivator</tt>.	 *	 * @return The context bundle's <tt>Bundle</tt> object.	 * @exception java.lang.IllegalStateException If this context bundle has stopped.	 */    public abstract Bundle getBundle();    /**	 * Installs the bundle from the specified location string. A bundle is obtained	 * from <tt>location</tt> as interpreted by the Framework in an	 * implementation dependent manner.	 * <p>Every installed bundle is uniquely identified by its location string, typically	 * in the form of a URL.	 *	 * <p>The following steps are required to install a bundle:	 * <ol>	 * <li>If a bundle containing the same location string is already installed,	 * the <tt>Bundle</tt> object for that bundle is returned.	 *	 * <li>The bundle's content is read from the location string. If this fails,	 * a {@link BundleException}is thrown.	 *	 * <li>The bundle's <tt>Bundle-NativeCode</tt>	 * dependencies are resolved. If this fails, a <tt>BundleException</tt> is thrown.	 *	 * <li>The bundle's associated resources are allocated. The associated resources minimally	 * consist of a unique identifier, and a persistent storage area if the platform has file	 * system support. If this step fails, a <tt>BundleException</tt> is thrown.	 *	 * <li>If the bundle has declared an Bundle-RequiredExecutionEnvironment header, then	 * the listed execution environments must be verified against the installed	 * execution environments. If they are not all present, a <tt>BundleException</tt> must be thrown.	 *	 * <li>The bundle's state is set to <tt>INSTALLED</tt>.	 *	 * <li>If the bundle has not declared an Import-Package Manifest header	 * (that is, the bundle does not depend on any packages from other OSGi bundles), the	 * bundle's state may be set to <tt>RESOLVED</tt>.	 *	 * <li>A bundle event of type {@link BundleEvent#INSTALLED}is broadcast.	 *	 * <li>The <tt>Bundle</tt> object for the newly installed bundle is returned.	 * </ol>	 *	 * <b>Postconditions, no exceptions thrown</b>	 * <ul>	 * <li><tt>getState()</tt> in {<tt>INSTALLED</tt>}, <tt>RESOLVED</tt>}.	 * <li>Bundle has a unique ID.	 * </ul>	 * <b>Postconditions, when an exception is thrown</b>	 * <ul>	 * <li>Bundle is not installed and no trace of the bundle exists.	 * </ul>	 *	 * @param location The location identifier of the bundle to install.	 * @return The <tt>Bundle</tt> object of the installed bundle.	 * @exception BundleException If the installation failed.	 * @exception java.lang.SecurityException If the caller does not have	 * the appropriate <tt>AdminPermission</tt>, and the Java Runtime Environment supports permissions.	 */    public abstract Bundle installBundle(String location)    throws BundleException;    /**	 * Installs the bundle from the specified <tt>InputStream</tt> object.	 *	 * <p>This method performs all of the steps listed in <tt>BundleContext.installBundle(String location)</tt>,	 * except that the bundle's content will be read from the <tt>InputStream</tt> object.	 * The location identifier string specified will be used as the identity of the bundle.	 *	 * <p>This method must always close the <tt>InputStream</tt> object, even if an exception is thrown.	 * @param location The location identifier of the bundle to install.	 * @param in The <tt>InputStream</tt> object from which this bundle will be read.	 * @return The <tt>Bundle</tt> object of the installed bundle.	 * @exception BundleException If the provided stream cannot be read or the installation failed.	 * @exception java.lang.SecurityException If the caller does not have	 * the appropriate <tt>AdminPermission</tt>, and the Java Runtime Environment supports permissions.	 * @see #installBundle(java.lang.String)	 */    public abstract Bundle installBundle(String location, InputStream in)    throws BundleException;    /**	 * Returns the bundle with the specified identifier.	 *	 * @param id The identifier of the bundle to retrieve.	 * @return A <tt>Bundle</tt> object, or <tt>null</tt> if the identifier does not match any installed bundle.	 */    public abstract Bundle getBundle(long id);    /**	 * Returns a list of all installed bundles. <p>This method returns a list	 * of all bundles installed in the OSGi environment at the time	 * of the call to this method. However, as the Framework is a very dynamic	 * environment, bundles can be installed or uninstalled at anytime.	 *	 * @return An array of <tt>Bundle</tt> objects; one object per installed bundle.	 */    public abstract Bundle[] getBundles();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲va综合人人澡精品 | 美女视频一区在线观看| 亚洲人成网站精品片在线观看| 精品av综合导航| 国产精品美女久久久久av爽李琼| 欧美精品日韩精品| 成人丝袜高跟foot| 91天堂素人约啪| 色香色香欲天天天影视综合网| 成人黄色大片在线观看| 国产成人av资源| 91精品国产乱| 精品欧美久久久| 欧美电影免费观看完整版| 国产亲近乱来精品视频| 中文字幕五月欧美| 热久久久久久久| 久久国产三级精品| 丁香一区二区三区| 欧美视频一区二区三区| 久久久久综合网| 亚洲最快最全在线视频| 精品亚洲成a人在线观看| 成人av电影在线观看| 欧美三级日韩三级国产三级| 久久嫩草精品久久久精品| 综合自拍亚洲综合图不卡区| 美国av一区二区| 91精彩视频在线观看| 久久午夜羞羞影院免费观看| 一区二区成人在线观看| 蜜臀av性久久久久av蜜臀妖精 | 亚洲日本乱码在线观看| 中文字幕在线播放不卡一区| 成人精品一区二区三区四区| 尤物在线观看一区| 精品国产人成亚洲区| 成人av在线影院| 亚洲无线码一区二区三区| 欧美不卡激情三级在线观看| 91小视频在线| 精品一区二区三区视频| 国产精品盗摄一区二区三区| 欧美tickling网站挠脚心| 一本色道**综合亚洲精品蜜桃冫| 日韩有码一区二区三区| 综合久久综合久久| 26uuu色噜噜精品一区二区| 欧洲色大大久久| 国产91精品入口| 美日韩一区二区| 一区二区三区毛片| 国产精品欧美一区二区三区| 欧美电视剧在线观看完整版| 色狠狠色噜噜噜综合网| 成人涩涩免费视频| 黑人巨大精品欧美黑白配亚洲| 亚洲综合激情网| 国产精品不卡一区| 久久久99久久| 精品国产一区二区亚洲人成毛片 | 丝袜亚洲另类欧美| 亚洲精品一二三| 国产精品久久久久久久第一福利 | 亚洲婷婷综合色高清在线| 精品日韩一区二区三区| 777午夜精品免费视频| 色综合久久精品| 91在线观看免费视频| 国产黄人亚洲片| 国产一区二区三区日韩| 久久精品国产一区二区| 蜜桃视频在线一区| 喷水一区二区三区| 日韩福利视频导航| 奇米精品一区二区三区四区 | 久久国产精品99久久久久久老狼| 亚洲成年人网站在线观看| 亚洲一二三专区| 亚洲综合网站在线观看| 一区二区三区在线视频免费观看| 亚洲人成7777| 亚洲制服欧美中文字幕中文字幕| 一区二区三区在线不卡| 一区二区视频免费在线观看| 亚洲精品视频一区| 亚洲永久精品大片| 日韩电影免费在线观看网站| 日韩成人午夜精品| 久久99精品国产91久久来源| 国模大尺度一区二区三区| 激情综合一区二区三区| 国产白丝网站精品污在线入口| 成人av在线网| av动漫一区二区| 一本一本久久a久久精品综合麻豆| 欧美影视一区二区三区| 欧美一区二区三区精品| 精品国产一区二区三区av性色| 欧美成人精品二区三区99精品| 精品乱人伦一区二区三区| 久久久久9999亚洲精品| 日韩一区在线播放| 亚洲国产日产av| 肉色丝袜一区二区| 国产曰批免费观看久久久| 福利电影一区二区三区| 99精品偷自拍| 欧美午夜精品一区二区三区| 欧美一区中文字幕| 国产亚洲欧美中文| 亚洲欧美日韩中文字幕一区二区三区 | 色婷婷国产精品综合在线观看| 欧美日韩在线播放一区| 日韩精品一区二区三区在线| 国产精品美女久久久久久 | 免费不卡在线观看| 国产精品一区免费在线观看| 91网站在线观看视频| 欧美一级片在线| 最新成人av在线| 免费观看在线综合色| 成人性视频网站| 欧美日本在线看| 中文字幕av不卡| 天堂va蜜桃一区二区三区漫画版| 夫妻av一区二区| 欧美一区二区精品久久911| 国产精品乱人伦一区二区| 视频一区二区三区入口| 成人福利电影精品一区二区在线观看| 欧美在线观看禁18| 久久久99免费| 日韩精品欧美精品| 色综合久久久网| 久久久综合视频| 日韩av在线播放中文字幕| 99国产精品国产精品久久| 欧美成人精品3d动漫h| 亚洲国产成人91porn| 成人av在线一区二区| 久久综合九色综合久久久精品综合| 亚洲伦理在线免费看| 岛国精品在线播放| 精品欧美久久久| 日韩专区中文字幕一区二区| 色综合久久中文综合久久97| 国产目拍亚洲精品99久久精品| 日韩—二三区免费观看av| 91福利资源站| 亚洲欧洲综合另类| 丁香婷婷综合五月| 26uuu精品一区二区三区四区在线| 亚洲愉拍自拍另类高清精品| 99re热这里只有精品视频| 欧美电视剧在线看免费| 偷拍一区二区三区四区| 日本韩国欧美一区二区三区| 中文字幕在线视频一区| 国产在线精品一区二区不卡了 | 欧美精品一区二区精品网| 午夜精品一区二区三区电影天堂| 91网站最新地址| 亚洲欧洲三级电影| a级精品国产片在线观看| 久久午夜免费电影| 国产精品一线二线三线精华| 久久久久久免费| 国内精品自线一区二区三区视频| 欧美精品自拍偷拍动漫精品| 午夜精品久久久久| 欧美日韩黄色影视| 亚洲无线码一区二区三区| 欧美美女一区二区三区| 丝袜亚洲另类欧美| 制服丝袜激情欧洲亚洲| 麻豆精品新av中文字幕| 日韩欧美一区二区视频| 久久99精品久久久久久| www久久久久| 不卡一区二区在线| 亚洲美女偷拍久久| 欧美日韩视频在线第一区| 欧美a级理论片| 精品国产一区二区精华| 国产凹凸在线观看一区二区| 国产精品久久久久久久久晋中| 91在线观看成人| 亚洲成人午夜电影| 精品国产sm最大网站免费看| 韩国在线一区二区| 国产精品理伦片| 欧美亚洲尤物久久| 日韩高清在线电影| 久久精品亚洲精品国产欧美 | 图片区日韩欧美亚洲| 欧美成人乱码一区二区三区| 国产91在线|亚洲| 亚洲综合男人的天堂| 欧美大片一区二区|