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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? bundlecontext.java

?? OSGI 的 源碼實(shí)現(xiàn),采用JAVA書寫
?? JAVA
?? 第 1 頁 / 共 3 頁
字號(hào):
/* * $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();

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产不卡在线一区| 美国十次综合导航| 日韩一区二区免费高清| 国产成人av资源| 亚洲高清免费一级二级三级| 精品日本一线二线三线不卡| 色一情一乱一乱一91av| 热久久一区二区| 一区二区三区四区视频精品免费 | 国产精品蜜臀在线观看| 777a∨成人精品桃花网| 成人动漫视频在线| 美女网站在线免费欧美精品| 亚洲男人天堂一区| 中文字幕欧美国产| 日韩成人一级片| 亚洲欧美日韩国产另类专区| www激情久久| 欧美精品第1页| 日本乱人伦aⅴ精品| 国产成人亚洲综合a∨婷婷| 日韩专区欧美专区| 一区二区国产视频| 亚洲欧洲av在线| 久久久久久免费网| 精品裸体舞一区二区三区| 欧美色综合久久| 色狠狠一区二区三区香蕉| 成人av网址在线| 国产成人午夜电影网| 久久国产成人午夜av影院| 亚洲成a天堂v人片| 一区二区三区国产精品| 成人免费在线播放视频| 亚洲国产高清在线观看视频| 久久精品人人做| 26uuu久久天堂性欧美| 日韩三级免费观看| 51精品秘密在线观看| 欧美性一级生活| 日本精品裸体写真集在线观看| 成人性色生活片免费看爆迷你毛片| 黑人巨大精品欧美黑白配亚洲| 日本在线不卡视频| 日本视频免费一区| 美女精品自拍一二三四| 久久精品国产99国产| 久久99精品久久久| 狠狠色丁香久久婷婷综合丁香| 青青草国产精品97视觉盛宴 | 樱花影视一区二区| 一区二区欧美精品| 天天影视涩香欲综合网| 日韩精品亚洲一区二区三区免费| 天堂蜜桃一区二区三区| 日韩精品乱码免费| 国产综合久久久久影院| 国产精品资源站在线| 成人激情黄色小说| 日本高清不卡在线观看| 欧美系列亚洲系列| 精品国精品国产| 国产欧美日韩久久| 亚洲综合免费观看高清完整版在线| 亚洲午夜在线视频| 另类的小说在线视频另类成人小视频在线| 久久综合综合久久综合| 国产一区二区美女| 成人福利视频网站| av不卡在线播放| 一区二区三区波多野结衣在线观看 | 亚洲地区一二三色| 午夜在线电影亚洲一区| 琪琪一区二区三区| 久久精品国产99国产精品| 久久99国产精品麻豆| 久久国产成人午夜av影院| 国产精品综合在线视频| 国产99久久久国产精品潘金网站| 午夜日韩在线观看| 日韩av一区二区在线影视| 亚洲高清免费观看 | 国产精品456露脸| 成人a区在线观看| 欧美伊人久久大香线蕉综合69| 欧美日韩一区二区在线观看视频 | 欧美午夜电影一区| 欧美一级一区二区| 国产夜色精品一区二区av| 中文在线资源观看网站视频免费不卡 | 欧美一级日韩一级| 国产亚洲综合性久久久影院| 国产欧美一区二区精品性色 | 亚洲午夜在线观看视频在线| 丝袜亚洲另类欧美| 日本美女视频一区二区| 99久久婷婷国产综合精品电影| 欧美性大战久久| 精品国产乱码久久久久久久久 | 成人免费高清在线| 欧美日韩国产片| 2022国产精品视频| 亚洲欧美另类久久久精品| 日本强好片久久久久久aaa| 国产高清亚洲一区| 欧美日韩在线电影| 国产亚洲精品福利| 一区二区三区蜜桃| 国产尤物一区二区在线| 国产精品一色哟哟哟| 在线一区二区三区做爰视频网站| 欧美不卡一区二区三区四区| 最近日韩中文字幕| 久久99精品国产| 欧美性三三影院| 久久精品欧美一区二区三区不卡 | 国产一区在线看| 精品视频一区三区九区| 久久青草国产手机看片福利盒子 | 777久久久精品| 国产精品传媒入口麻豆| 亚洲永久免费av| 风间由美性色一区二区三区| 欧美日韩不卡一区| 国产区在线观看成人精品| 中文一区二区在线观看| 日日夜夜免费精品视频| 99精品视频一区二区| 精品少妇一区二区三区日产乱码 | 91久久精品一区二区二区| 国产精品萝li| 国产精品一区免费视频| 91精品久久久久久久91蜜桃| 亚洲色图.com| 成人少妇影院yyyy| 久久综合九色综合久久久精品综合| 亚洲在线观看免费| 在线亚洲一区观看| 精品国产青草久久久久福利| 亚洲超碰97人人做人人爱| 一本大道av一区二区在线播放| 精品国产伦理网| 免费的成人av| 在线视频亚洲一区| 日韩美女啊v在线免费观看| 国产盗摄视频一区二区三区| 日韩精品一区二区三区在线观看| 亚洲国产人成综合网站| 色欧美片视频在线观看| ...xxx性欧美| www.成人在线| 国产精品久久久久四虎| 国产69精品久久久久毛片 | 麻豆久久久久久| 欧美日韩国产系列| 亚洲成a人v欧美综合天堂下载 | 欧美午夜在线一二页| 亚洲另类春色校园小说| 91浏览器在线视频| 亚洲精品国产一区二区精华液| 国产成人免费视频网站| 国产日韩高清在线| 成人综合婷婷国产精品久久蜜臀| 欧美精品一区二区在线观看| 黄色日韩网站视频| 日韩一级黄色大片| 国产在线观看免费一区| 日韩一级免费观看| 国产一区二区三区最好精华液| 久久综合久久综合久久| 精品亚洲porn| 精品日韩欧美一区二区| 精品中文av资源站在线观看| 日韩精品一区在线| 国产成人av网站| 中文字幕在线观看不卡视频| 91美女片黄在线观看| 亚洲影院久久精品| 日韩一区二区三区电影在线观看| 国产精品乡下勾搭老头1| 久久久久久久久免费| 福利一区二区在线| 国产精品久久久99| 风间由美一区二区三区在线观看 | 亚洲女同一区二区| 色一情一伦一子一伦一区| 国产精品精品国产色婷婷| 色综合网站在线| 精品系列免费在线观看| 精品国产人成亚洲区| 99视频在线观看一区三区| 亚洲国产一区在线观看| 日韩欧美在线网站| 粉嫩一区二区三区性色av| 国产精品―色哟哟| 欧美在线不卡一区| 国产老妇另类xxxxx| 亚洲女人****多毛耸耸8| 555www色欧美视频| 国产成人午夜片在线观看高清观看|