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

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

?? bundle.java

?? OSGI 的 源碼實(shí)現(xiàn),采用JAVA書寫
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
/* * $Header: /cvshome/repository/org/osgi/framework/Bundle.java,v 1.19 2002/11/14 13:48:30 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.InputStream;import java.net.URL;import java.util.Dictionary;/** * An installed bundle in the Framework. * * <p>A <tt>Bundle</tt> object is the access point to define the life cycle * of an installed bundle. Each bundle installed in the OSGi environment * will have an associated <tt>Bundle</tt> object. * * <p>A bundle will have a unique identity, a <tt>long</tt>, chosen by the * Framework. This identity will not change during the life cycle of a bundle, even when * the bundle is updated. Uninstalling and then reinstalling the bundle will create * a new unique identity. * * <p>A bundle can be in one of six states: * <ul> * <li>{@link #UNINSTALLED} * <li>{@link #INSTALLED} * <li>{@link #RESOLVED} * <li>{@link #STARTING} * <li>{@link #STOPPING} * <li>{@link #ACTIVE} * </ul> * <p>Values assigned to these states have no specified ordering; * they represent bit values that may be ORed together to determine if * a bundle is in one of the valid states. * * <p>A bundle should only execute code when its state is one of * <tt>STARTING</tt>, <tt>ACTIVE</tt>, or <tt>STOPPING</tt>. * An <tt>UNINSTALLED</tt> bundle can not be set to another state; it * is a zombie and can only be reached because invalid references are kept somewhere. * * <p>The Framework is the only entity that is allowed to * create <tt>Bundle</tt> objects, and these objects are only valid * within the Framework that created them. * * @version $Revision: 1.19 $ * @author Open Services Gateway Initiative */public abstract interface Bundle{    /**	 * This bundle is uninstalled and may not be used.	 *	 * <p>The <tt>UNINSTALLED</tt> state is only visible after a bundle	 * is uninstalled; the bundle is in an unusable state	 * and all references to the <tt>Bundle</tt> object should be released	 * immediately.	 * <p>The value of <tt>UNINSTALLED</tt> is 0x00000001.	 */    public static final int UNINSTALLED = 0x00000001;    /**	 * This bundle is installed but not yet resolved.	 *	 * <p>A bundle is in the <tt>INSTALLED</tt> state when it has been installed	 * in the Framework but cannot run.	 * <p>This state is visible if the bundle's code dependencies are not resolved.	 * The Framework may attempt to resolve an <tt>INSTALLED</tt> bundle's	 * code dependencies and move the bundle to the <tt>RESOLVED</tt> state.	 * <p>The value of <tt>INSTALLED</tt> is 0x00000002.	 */    public static final int INSTALLED = 0x00000002;    /**	 * This bundle is resolved and is able to be started.	 *	 * <p>A bundle is in the <tt>RESOLVED</tt> state when the Framework has successfully	 * resolved the bundle's dependencies. These dependencies include:	 * <ul>	 * <li>The bundle's class path from its {@link Constants#BUNDLE_CLASSPATH} Manifest header.	 * <li>The bundle's package dependencies from	 * its {@link Constants#EXPORT_PACKAGE}and {@link Constants#IMPORT_PACKAGE} Manifest headers.	 * </ul>	 * <p>Note that the bundle is not active yet. A bundle must be put in the	 * <tt>RESOLVED</tt> state before it can be started. The Framework may attempt to	 * resolve a bundle at any time.	 * <p>The value of <tt>RESOLVED</tt> is 0x00000004.	 */    public static final int RESOLVED = 0x00000004;    /**	 * This bundle is in the process of starting.	 *	 * <p>A bundle is in the <tt>STARTING</tt> state when the {@link #start}method	 * is active. A bundle will be in this state when the bundle's	 * {@link BundleActivator#start}is called. If this method completes	 * without exception, then the bundle has successfully started and will move to the	 * <tt>ACTIVE</tt> state.	 * <p>The value of <tt>STARTING</tt> is 0x00000008.	 */    public static final int STARTING = 0x00000008;    /**	 * This bundle is in the process of stopping.	 *	 * <p>A bundle is in the <tt>STOPPING</tt> state when the {@link #stop}method	 * is active. A bundle will be in this state when the bundle's	 * {@link BundleActivator#stop}method is called. When this method completes	 * the bundle is stopped and will move to the <tt>RESOLVED</tt> state.	 * <p>The value of <tt>STOPPING</tt> is 0x00000010.	 */    public static final int STOPPING = 0x00000010;    /**	 * This bundle is now running.	 *	 * <p>A bundle is in the <tt>ACTIVE</tt> state when it has been successfully started.	 * <p>The value of <tt>ACTIVE</tt> is 0x00000020.	 */    public static final int ACTIVE    = 0x00000020;    /**	 * Returns this bundle's current state.	 *	 * <p>A bundle can be in only one state at any time.	 *	 * @return An element of <tt>UNINSTALLED</tt>, <tt>INSTALLED</tt>,	 * <tt>RESOLVED</tt>, <tt>STARTING</tt>, <tt>STOPPING</tt>,	 * <tt>ACTIVE</tt>.	 */    public abstract int getState();    /**	 * Starts this bundle.	 *	 * If the Framework implements the optional Start Level service and the	 * current start level is less than this bundle's start level, then the	 * Framework must persistently mark this bundle as started and delay the	 * starting of this bundle until the Framework's current start level becomes	 * equal or more than the bundle's start level.	 * <p>Otherwise, the following steps are required to start a bundle:	 * <ol>	 * <li>If this bundle's state is <tt>UNINSTALLED</tt> then	 * an <tt>IllegalStateException</tt> is thrown.	 *	 * <li>If this bundle's state is <tt>STARTING</tt> or <tt>STOPPING</tt>	 * then this method will wait for this bundle to	 * change state before continuing. If this does not occur	 * in a reasonable time, a <tt>BundleException</tt> is thrown to indicate	 * this bundle was unable to be started.	 *	 * <li>If this bundle's state is <tt>ACTIVE</tt> then this method returns immediately.	 *	 * <li>If this bundle's state is not <tt>RESOLVED</tt>,	 * an attempt is made to resolve this bundle's package dependencies.	 * If the Framework cannot resolve this bundle, a <tt>BundleException</tt> is thrown.	 *	 * <li>This bundle's state is set to <tt>STARTING</tt>.	 *	 * <li>The {@link BundleActivator#start}method of this	 * bundle's <tt>BundleActivator</tt>, if one is specified, is called.	 * If the <tt>BundleActivator</tt> is invalid or throws an exception, this bundle's state	 * is set back to <tt>RESOLVED</tt>.	 * <br>Any services registered by the bundle will be unregistered.	 * <br>Any services used by the bundle will be released.	 * <br>Any listeners registered by the bundle will be removed.	 * <br>A <tt>BundleException</tt> is then thrown.	 *	 * <li> If this bundle's state is <tt>UNINSTALLED</tt>,	 * because the bundle was uninstalled while the <tt>BundleActivator.start</tt>	 * method was running, a <tt>BundleException</tt> is thrown.	 *	 * <li>Since it is recorded that this bundle has been started, when	 * the Framework is restarted this bundle will be automatically started.	 *	 * <li>This bundle's state is set to <tt>ACTIVE</tt>.	 *	 * <li>A bundle event of type {@link BundleEvent#STARTED}is broadcast.	 * </ol>	 *	 * <b>Preconditions</b>	 * <ul>	 * <li><tt>getState()</tt> in {<tt>INSTALLED</tt>}, {<tt>RESOLVED</tt>}.	 * </ul>	 * <b>Postconditions, no exceptions thrown</b>	 * <ul>	 * <li><tt>getState()</tt> in {<tt>ACTIVE</tt>}.	 * <li><tt>BundleActivator.start()</tt> has been called and did not throw an exception.	 * </ul>	 * <b>Postconditions, when an exception is thrown</b>	 * <ul>	 * <li><tt>getState()</tt> not in {<tt>STARTING</tt>}, {<tt>ACTIVE</tt>}.	 * </ul>	 *	 * @exception BundleException If this bundle couldn't be started.	 * This could be because a code dependency could not be resolved or	 * the specified <tt>BundleActivator</tt> could not be loaded or threw an exception.	 * @exception java.lang.IllegalStateException If this	 * bundle has been uninstalled or this bundle tries to change its own state.	 * @exception java.lang.SecurityException If the caller does not have	 * the appropriate <tt>AdminPermisson</tt>, and the Java Runtime Environment	 * supports permissions.	 */    public abstract void start() throws BundleException;    /**	 * Stops this bundle.	 *	 * <p> The following steps are required to stop a bundle:	 * <ol>	 * <li>If this bundle's state is <tt>UNINSTALLED</tt> then	 * an <tt>IllegalStateException</tt> is thrown.	 *	 * <li>If this bundle's state is <tt>STARTING</tt> or <tt>STOPPING</tt>	 * then this method will wait for this bundle to	 * change state before continuing. If this does not occur	 * in a reasonable time, a <tt>BundleException</tt> is thrown to indicate	 * this bundle was unable to be stopped.	 *	 * <li>If this bundle's state is not <tt>ACTIVE</tt> then this method returns immediately.	 *	 * <li> This bundle's state is set to <tt>STOPPING</tt>.	 *	 * <li>Since it is recorded that this bundle has been stopped,	 * Framework is restarted this bundle will not be automatically started.	 *	 * <li>The {@link BundleActivator#stop}method of this	 * bundle's <tt>BundleActivator</tt>, if one is specified, is called.	 * If this method throws an exception, it will continue to stop this bundle.	 * A <tt>BundleException</tt> will be thrown after completion of the	 * remaining steps.	 *	 * <li>Any services registered by this bundle must be unregistered.	 * <li>Any services used by this bundle must be released.	 * <li>Any listeners registered by this bundle must be removed.	 *	 * <li> If this bundle's state is <tt>UNINSTALLED</tt>,	 * because the bundle was uninstalled while the <tt>BundleActivator.stop</tt>	 * method was running, a <tt>BundleException</tt> must be thrown.	 *	 * <li>This bundle's state is set to <tt>RESOLVED</tt>.	 *	 * <li>A bundle event of type {@link BundleEvent#STOPPED}is broadcast.	 * </ol>	 *	 * <b>Preconditions</b>	 * <ul>	 * <li><tt>getState()</tt> in {<tt>ACTIVE</tt>}.	 * </ul>	 * <b>Postconditions, no exceptions thrown</b>	 * <ul>	 * <li><tt>getState()</tt> not in {<tt>ACTIVE</tt>, <tt>STOPPING</tt>}.	 * <li><tt>BundleActivator.stop</tt> has been called and did not throw an exception.	 * </ul>	 * <b>Postconditions, when an exception is thrown</b>	 * <ul>	 * <li>None.	 * </ul>	 *	 * @exception BundleException If this bundle's	 * <tt>BundleActivator</tt> could not be loaded or threw an exception.	 * @exception java.lang.IllegalStateException If this	 * bundle has been uninstalled or this bundle tries to change its own state.	 * @exception java.lang.SecurityException If the caller does not have	 * the appropriate <tt>AdminPermission</tt>, and the Java Runtime Environment	 * supports permissions.	 */    public abstract void stop() throws BundleException;    /**	 * Updates this bundle.	 *	 * <p>If this bundle's state is <tt>ACTIVE</tt>, it will be stopped	 * before the update and started after the update successfully completes.	 *	 * <p>If the bundle being updated has exported any packages, these	 * packages will not be updated. Instead, the previous package version will remain	 * exported until the <tt>PackageAdmin.refreshPackages</tt> method has been	 * has been called or the Framework is relaunched.	 *

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合狠狠综合| 91久久精品一区二区三区| 成人精品视频一区二区三区尤物| www.日本不卡| 欧美另类videos死尸| 精品国产乱码久久久久久免费| 国产无遮挡一区二区三区毛片日本| 国产精品国产三级国产aⅴ中文| 亚洲精品国产精华液| 免费视频一区二区| a亚洲天堂av| 欧美一区二区日韩一区二区| 国产精品女上位| 日韩国产欧美三级| 不卡视频免费播放| 欧美一区二区三区四区在线观看| 国产亚洲女人久久久久毛片| 亚洲午夜免费福利视频| 国产乱码精品一区二区三区忘忧草| 色国产精品一区在线观看| 精品日本一线二线三线不卡| 一区二区三区色| 国产盗摄一区二区三区| 欧美人狂配大交3d怪物一区| 国产精品乱码久久久久久| 日韩精品国产欧美| 不卡的电影网站| 欧美成人性福生活免费看| 日韩一区欧美小说| 精品在线播放免费| 欧美日韩你懂得| 日本一区二区成人| 久久精品国产精品亚洲综合| 色哦色哦哦色天天综合| 国产三级欧美三级日产三级99| 天堂久久一区二区三区| 99v久久综合狠狠综合久久| 日韩欧美亚洲国产精品字幕久久久| 亚洲精品国产精华液| 成人黄色a**站在线观看| 欧美一级黄色大片| 一区二区三区高清| 成人免费观看视频| 26uuu另类欧美| 日本美女一区二区三区视频| 日本韩国欧美一区二区三区| 国产欧美日韩麻豆91| 久久99精品久久久久久动态图| 欧美日产国产精品| 亚洲午夜久久久久| 91在线一区二区| 中文欧美字幕免费| 国产一区999| 欧美成人伊人久久综合网| 五月婷婷综合激情| 欧美综合亚洲图片综合区| 亚洲欧美日韩国产一区二区三区| 床上的激情91.| 久久久精品tv| 国产一区999| 久久精品人人爽人人爽| 久久成人av少妇免费| 欧美一级精品在线| 欧美bbbbb| 日韩欧美视频一区| 麻豆国产精品视频| 日韩欧美一区二区三区在线| 日本欧美一区二区三区乱码| 欧美一区二区在线免费观看| 日韩和欧美一区二区三区| 9191久久久久久久久久久| 亚洲成人久久影院| 69p69国产精品| 视频一区视频二区中文| 91麻豆精品91久久久久久清纯| 午夜国产不卡在线观看视频| 欧美色视频在线观看| 午夜国产精品一区| 日韩一区二区在线观看视频| 蜜臀av国产精品久久久久| 欧美成人一区二区三区片免费| 久久99九九99精品| 国产三区在线成人av| av电影在线观看一区| 亚洲视频香蕉人妖| 色素色在线综合| 石原莉奈在线亚洲二区| 欧美一二三区在线| 国产做a爰片久久毛片| 国产三级精品视频| 色综合色狠狠综合色| 亚洲国产精品久久人人爱蜜臀| 欧美二区三区的天堂| 韩国视频一区二区| 国产精品美女久久久久久2018| 91理论电影在线观看| 亚洲宅男天堂在线观看无病毒| 欧美日韩视频在线第一区| 久久国产精品72免费观看| 久久精品亚洲国产奇米99| 91在线丨porny丨国产| 亚洲国产日韩在线一区模特| 欧美一区二区啪啪| 成人夜色视频网站在线观看| 亚洲激情欧美激情| 欧美一级在线免费| 国产电影一区二区三区| 一区二区三区欧美激情| 欧美一区二区精美| 国产.欧美.日韩| 一区二区三区在线播| 欧美电视剧免费观看| 成人av中文字幕| 天堂久久一区二区三区| 国产欧美日韩在线| 精品婷婷伊人一区三区三| 久久成人免费电影| 亚洲美女在线一区| 日韩欧美精品三级| 91亚洲永久精品| 麻豆成人av在线| 中文字幕在线播放不卡一区| 欧美日韩成人在线| 顶级嫩模精品视频在线看| 亚洲国产成人91porn| 国产欧美日韩不卡免费| 欧美日韩国产在线观看| 国产v日产∨综合v精品视频| 亚洲va国产va欧美va观看| 国产日产精品1区| 欧美四级电影网| 国产精品18久久久久久久久 | 国产在线精品一区二区不卡了| 国产精品国产三级国产普通话99| 欧美电影影音先锋| 99久久精品免费| 国产综合色精品一区二区三区| 亚洲一级二级在线| 国产精品麻豆网站| 777午夜精品免费视频| 91在线高清观看| 国产麻豆午夜三级精品| 天堂精品中文字幕在线| 最新久久zyz资源站| 亚洲精品一区二区三区蜜桃下载| 欧美三级视频在线播放| 成人av在线一区二区三区| 精品在线一区二区三区| 日日夜夜一区二区| 亚洲欧美电影一区二区| 国产清纯美女被跳蛋高潮一区二区久久w | 欧美一二三区精品| 欧美亚洲一区三区| 成人aa视频在线观看| 精品一区二区三区不卡| 三级不卡在线观看| 午夜影院久久久| 樱花影视一区二区| 国产精品国产精品国产专区不片| 精品久久久久久久久久久久久久久久久| 欧美少妇xxx| 91在线精品一区二区| 丁香天五香天堂综合| 国产一区三区三区| 老司机精品视频导航| 天堂av在线一区| 亚洲一区二区三区小说| 亚洲黄色在线视频| 亚洲欧美二区三区| 亚洲欧美另类小说视频| 国产精品传媒在线| 中文字幕一区二区三区不卡在线| 国产日韩欧美一区二区三区综合| 精品国产伦一区二区三区免费| 日韩午夜在线播放| 在线综合+亚洲+欧美中文字幕| 欧美日韩国产电影| 91精品国模一区二区三区| 欧美三级日韩在线| 欧美猛男gaygay网站| 欧美午夜不卡在线观看免费| 色综合久久天天| 色94色欧美sute亚洲线路一久 | 亚洲精品免费在线观看| 亚洲精品视频免费观看| 亚洲综合在线免费观看| 一区二区三区国产豹纹内裤在线| 一区二区欧美国产| 亚洲卡通欧美制服中文| 一区二区不卡在线播放 | 91精品久久久久久蜜臀| 69久久夜色精品国产69蝌蚪网| 欧美一级黄色大片| 久久先锋影音av鲁色资源网| 欧美va在线播放| 国产亚洲一二三区| 亚洲欧美综合网| 一区二区三区四区在线免费观看| 亚洲国产精品尤物yw在线观看| 日本欧洲一区二区|