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

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

?? oscar.java

?? OSGI 的 源碼實現(xiàn),采用JAVA書寫
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* * Oscar - An implementation of the OSGi framework. * Copyright (c) 2004, Richard S. Hall * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * *   * Redistributions of source code must retain the above copyright *     notice, this list of conditions and the following disclaimer. *   * Redistributions in binary form must reproduce the above copyright *     notice, this list of conditions and the following disclaimer in *     the documentation and/or other materials provided with the *     distribution. *   * Neither the name of the ungoverned.org nor the names of its *     contributors may be used to endorse or promote products derived *     from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Contact: Richard S. Hall (heavy@ungoverned.org) * Contributor(s): ***/package org.ungoverned.oscar;import java.io.*;import java.net.*;import java.security.*;import java.security.cert.Certificate;import java.util.*;import org.osgi.framework.*;import org.osgi.service.packageadmin.ExportedPackage;import org.ungoverned.moduleloader.*;import org.ungoverned.moduleloader.search.ImportSearchPolicy;import org.ungoverned.moduleloader.search.ValidationException;import org.ungoverned.moduleloader.search.ValidationListener;import org.ungoverned.oscar.util.*;public class Oscar{    // Debug output.    private static PrintStream m_debugOut = null;    // Error output.    private static PrintStream m_errorOut = null;    // Output lock.    private static String m_outputLockObj = new String("output lock");    // CONCURRENCY NOTE: The admin lock is used when    // performing an administrative operation; this prevents    // multiple administrative operations (e.g., install,    // start, refresh, etc.) from happening at the same    // time. The quick lock is used when performing a quick    // operation that potentially only needs to read    // information or to modify a single bundle in some    // small way. To ensure total isolation in the framework    // core (i.e., only one thread is present), it is necessary    // to acquire both the admin and quick locks. In such a    // scenario, the quick lock should only be held for the    // shortest possible time so that other quick operations    // can occur in parallel to admin operations; otherwise,    // the potential for deadlock is great. For admin operations,    // the exclusion lock should always be acquired before    // the quick lock.    //    // When using only the quick lock, it is important that the    // code inside the lock does not reference directly or    // indirectly (i.e., via event callbacks) code that will    // try to acquire the admin lock. If this happens then    // deadlocks can occur.    // Admin lock.    private String m_adminLock = new String("admin lock");    // Quick lock.    private String m_quickLock = new String("quick lock");    // MODULE MANAGER.    private ModuleManager m_mgr = null;    // Map of configuration properties passed into constructor.    private transient Map m_configPropMap = null;    // Next available bundle identifier.    private transient long m_nextId = 1L;    // Next available service identifier.    private transient long m_nextServiceId = 1L;    // Framework's active start level.    private transient int m_activeStartLevel =        OscarConstants.FRAMEWORK_INACTIVE_STARTLEVEL;    // List of event listeners.    private transient OscarDispatchQueue m_dispatchQueue = null;    // Re-usable event dispatchers.    private Dispatcher m_frameworkDispatcher = null;    private Dispatcher m_bundleDispatcher = null;    private Dispatcher m_serviceDispatcher = null;    // Maps a bundle location to a bundle.    private transient HashMap m_installedBundleMap = null;    // An array of uninstalled bundles before a refresh occurs.    private transient BundleImpl[] m_uninstalledBundles = null;    // Local file system cache.    private transient BundleCache m_cache = null;    // Place to store and obtain framework properties    private transient Map m_frameworkPropMap = null;    // Reusable admin permission object for all instances    // of the BundleImpl.    private static AdminPermission m_adminPerm = new AdminPermission();    // Reusable privileged action object for starting/stopping    // bundles.    private StartStopPrivileged m_startStopPrivileged = new StartStopPrivileged(this);    // Status flag for Oscar.    public static final int UNKNOWN_STATUS  = -1;    public static final int RUNNING_STATUS  = 0;    public static final int STARTING_STATUS = 1;    public static final int STOPPING_STATUS = 2;    private transient int m_oscarStatus = UNKNOWN_STATUS;    /**     * This static code block automatically loads the system     * properties associated with the Oscar installation as     * soon as the class is loaded.    **/    static    {        initializeSystemProperties();    }    /**     * <p>     * Creates an instance of Oscar where all configuration properties     * (e.g., profile name, profile directory, strictness, and     * embedded execution) are specified using system properties.     * If the <a href="util/DefaultBundleCache.html"><tt>DefaulBundleCache</tt></a>     * is being used, then at a minimum a profile name or profile     * directory must be specified in the system properties.     * </p>     * <p>     * System properties can be set using a <tt>system.properties</tt>     * file; refer to the <a href="http://oscar.objectweb.org/usage.html">usage     * document</a> for more information.     * </p>     * @see #Oscar(java.util.Properties) For information on Oscar properties.    **/    public Oscar()    {        this(null, null);    }    /**     * <p>     * Creates an instance of Oscar where all configuration     * properties (e.g., profile name, profile directory, strictness, and     * embedded execution) are specified in the supplied <tt>Properties</tt>     * instance. If <tt>Properties</tt> is a null instance, then     * <tt>System.getProperty()</tt> is used to find all configuration     * properties. If the     * <a href="util/DefaultBundleCache.html"><tt>DefaulBundleCache</tt></a>     * is being used, then at a minimum a profile name or profile     * directory must be specified.     * </p>     * <p>     * The following are framework configuration properties that can be     * specified in the <tt>Properties</tt> instance:     * </p>     * <ul>     *   <li><tt>oscar.bundle.properties</tt> - The location of the     *       <tt>bundle.properties</tt> file; by default this file is     *       located in the <tt>lib</tt> directory of the Oscar installation     *       directory. This file contains attribute-value property pairs and     *       Oscar will automatically load these properties and make them     *       available via <tt>BundleContext.getProperty()</tt>.     *   </li>     *   <li><tt>oscar.cache.class</tt> - The class name to be used when     *       creating an instance for the bundle cache; this class must     *       implement the <tt>BundleCache</tt> interface and have a default     *       constructor. By default, Oscar will create an instance of     *       <tt>DefaultBundleCache</tt> for the bundle cache.     *   </li>     *   <li><tt>oscar.auto.install</tt> - Space-delimited list of bundles     *       to automatically install when Oscar is started. By default,     *       the bundles specified in this property will be installed into     *       start level 1. It is also possible to append a specific     *       start level to this property name to assign to the specified     *       bundles (e.g., <tt>oscar.auto.install.2</tt>). These variants     *       will be processed in sequence until a successor cannot be     *       found.     *   </li>     *   <li><tt>oscar.auto.start</tt> - Space-delimited list of bundles     *       to automatically install and start when Oscar is started.     *       By default, the bundles specified in this property will be     *       installed into start level 1. It is also possible to append a     *       specific start level to this property name to assign to the     *       specified bundles (e.g., <tt>oscar.auto.start.2</tt>). These     *       variants will be processed in sequence until a successor cannot     *       be found.     *   </li>     *   <li><tt>oscar.startlevel.framework</tt> - The initial start level     *       of the Oscar framework once it starts execution; the default     *       value is 1.     *   </li>     *   <li><tt>oscar.startlevel.bundle</tt> - The default start level for     *       newly installed bundles; the default value is 1.     *   </li>     *   <li><tt>oscar.embedded.execution</tt> - Flag to indicate whether     *       Oscar is embedded into a host application; the default value is     *       "<tt>false</tt>". If this flag is "<tt>true</tt>" then Oscar     *       will not called <tt>System.exit()</tt> upon termination.     *   </li>     *   <li><tt>oscar.strict.osgi</tt> - Flag to indicate whether Oscar is     *       running in strict OSGi mode; the default value is "<tt>true</tt>".     *       If this flag is "<tt>false</tt>" it enables a non-OSGi-compliant     *       feature by persisting <tt>BundleActivator</tt>s that implement     *       <tt>Serializable</tt>. This feature is not recommended since     *       it is non-compliant.     *   </li>     * </ul>     * <p>     * Besides the above framework properties, it is also possible to set     * properties for the bundle cache via the Oscar constructor. The     * available bundle cache properties depend on the cache implementation     * being used. For the properties of the default bundle cache, refer to the     * <a href="util/DefaultBundleCache.html"><tt>DefaulBundleCache</tt></a>     * API documentation. All of these properties can specified in one     * of three ways:     * </p>     * <ul>     *   <li>On the command line when starting the JVM using the "<tt>-D</tt>"     *       option.     *   </li>     *   <li>In the <tt>system.properties</tt> file.     *   </li>     *   <li>In the <tt>Properties</tt> instance supplied to the Oscar     *       constructor.</tt>     *   </li>     * </ul>     * <p>     * The <tt>system.properties</tt> file overwrites any property values     * specified on the command line. If a <tt>Properties</tt> instance is     * passed into Oscar's constructor, then all system properties are     * ignored and only the <tt>Properties</tt> instance is used to locate     * configuration property values.     * </p>     * @param props the properties used to initialize Oscar; may also     *        be <tt>null</tt>.    **/    public Oscar(Properties props)    {        this(props, null);    }    /**     * <p>     * Creates an instance of Oscar where all configuration properties     * (e.g., profile name, profile directory, strictness, and     * embedded execution) are specified using system properties.     * If the <a href="util/DefaultBundleCache.html"><tt>DefaulBundleCache</tt></a>     * is being used, then at a minimum a profile name or profile     * directory must be specified in the system properties.     * This constructor accepts a list of <tt>BundleActivator</tt>     * instances that will be started/stopped by the System Bundle when     * the framework is started/stopped; this is useful for when Oscar     * is embedded into a host application that wants to provide services     * to the bundles inside of Oscar.     * </p>     * @param activatorList list of bundle activators to be started/stopped by     *        the system bundle; may also be <tt>null</tt>     * @see #Oscar(java.util.Properties) For information on Oscar properties.    **/    public Oscar(List activatorList)    {        this(null, activatorList);    }    /**     * <p>     * Creates an instance of Oscar where all configuration     * properties (e.g., profile name, profile directory, strictness, and     * embedded execution) are specified in the supplied <tt>Properties</tt>     * instance. If <tt>Properties</tt> is a null instance, then     * <tt>System.getProperty()</tt> is used to find all configuration     * properties. If the     * <a href="util/DefaultBundleCache.html"><tt>DefaulBundleCache</tt></a>     * is being used, then at a minimum a profile name or profile     * directory must be specified in the system properties.     * This constructor also accepts a list of <tt>BundleActivator</tt>     * instances that will be started/stopped by the System Bundle when     * the framework is started/stopped; this is useful for when Oscar is     * embedded into a host application that wants to provide services to     * the bundles inside of Oscar.     * </p>     * @param props the properties used to initialize Oscar; may also     *        be <tt>null</tt>.     * @param activatorList list of bundle activators to be started/stopped by     *        the system bundle; may also be <tt>null</tt>     * @see #Oscar(java.util.Properties) For information on Oscar properties.    **/    public Oscar(Properties props, List activatorList)    {        // Create a copy of the passed in configuration properties.        if (props != null)        {            m_configPropMap = new HashMap();            for (Enumeration e = props.propertyNames(); e.hasMoreElements(); )            {                String name = (String) e.nextElement();                m_configPropMap.put(name, props.getProperty(name));            }        }        // Create default storage system from the specified cache class        // or use the default cache if no custom cache was specified.        String className = getConfigProperty(OscarConstants.CACHE_CLASS_PROP);        if (className == null)        {            className = DefaultBundleCache.class.getName();        }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲美女视频一区| av不卡在线播放| 不卡av免费在线观看| 欧美久久久久久蜜桃| 国产精品色在线| 日本不卡高清视频| 在线免费观看一区| 国产精品国产成人国产三级| 天堂午夜影视日韩欧美一区二区| 成人av在线资源网站| 欧美成人精品1314www| 亚洲午夜三级在线| 91啪九色porn原创视频在线观看| 精品人在线二区三区| 午夜伊人狠狠久久| 欧美三级一区二区| 亚洲蜜臀av乱码久久精品 | 不卡电影免费在线播放一区| 日韩欧美www| 日韩在线观看一区二区| 欧美私人免费视频| 一区二区三区四区在线| 91视频观看视频| 国产精品福利一区二区三区| 韩国三级中文字幕hd久久精品| 91精品国产一区二区人妖| 一卡二卡欧美日韩| 色8久久人人97超碰香蕉987| 国产精品久久一级| 波多野结衣中文字幕一区| 国产精品色噜噜| 成人h动漫精品一区二| 国产精品久久久久桃色tv| 国产精品996| 亚洲欧洲日韩综合一区二区| 波多野结衣精品在线| 中文字幕欧美日本乱码一线二线 | 久久久久久久综合| 国产精品一二三四| 中文字幕日本乱码精品影院| caoporn国产一区二区| 国产精品成人一区二区艾草 | 2021久久国产精品不只是精品| 另类成人小视频在线| 久久久噜噜噜久久人人看| 国产乱码精品一区二区三区忘忧草 | 国产二区国产一区在线观看| 久久久国际精品| 91视频精品在这里| 爽好多水快深点欧美视频| 日韩一卡二卡三卡四卡| 狠狠色狠狠色合久久伊人| 国产精品美日韩| 在线观看免费亚洲| 精彩视频一区二区三区| 国产精品电影一区二区三区| 91福利视频网站| 青青草97国产精品免费观看| 久久久亚洲国产美女国产盗摄| 成人av在线电影| 性做久久久久久久久| 日韩精品一区二区三区四区| 99热国产精品| 琪琪一区二区三区| 中文字幕在线一区免费| 3d动漫精品啪啪1区2区免费| 成人永久aaa| 日产国产高清一区二区三区| 亚洲国产高清aⅴ视频| 欧美日本国产视频| 成人精品小蝌蚪| 日本怡春院一区二区| 国产精品视频看| 日韩欧美中文字幕公布| 一本到高清视频免费精品| 久久电影国产免费久久电影| 亚洲一区在线看| 国产亚洲一二三区| 欧美精品久久久久久久久老牛影院| 风间由美一区二区av101| 美女脱光内衣内裤视频久久影院| 中文字幕在线观看一区| 日韩免费视频线观看| 在线中文字幕一区| 国产不卡视频在线播放| 免费观看日韩av| 亚洲小说春色综合另类电影| 中文字幕一区免费在线观看| 日韩丝袜美女视频| 欧美亚洲一区二区在线| www.66久久| 国产乱子伦一区二区三区国色天香| 亚洲电影一区二区三区| 亚洲美女免费在线| 国产精品乱码妇女bbbb| 久久久久久影视| 欧美电影免费观看高清完整版| 欧美性色黄大片| 91亚洲国产成人精品一区二三| 国产成人综合在线观看| 精品一区二区三区免费毛片爱 | 在线免费一区三区| 99精品视频在线免费观看| 成人在线视频一区| 国产二区国产一区在线观看| 国产一区二区三区美女| 免费观看91视频大全| 免费成人在线视频观看| 日韩制服丝袜先锋影音| 首页国产欧美日韩丝袜| 日韩精品电影一区亚洲| 日日夜夜免费精品视频| 香港成人在线视频| 日韩精品亚洲一区| 免费在线观看成人| 久久91精品久久久久久秒播| 久久精品噜噜噜成人88aⅴ| 蜜臂av日日欢夜夜爽一区| 久久精品国产77777蜜臀| 久久精品国产亚洲高清剧情介绍 | 日韩欧美的一区| 日韩免费性生活视频播放| 久久综合九色综合欧美就去吻 | 成人永久免费视频| 99久久99久久精品免费看蜜桃| 99久久国产综合精品色伊| 一本大道久久a久久综合| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 欧洲精品视频在线观看| 欧美日韩成人综合天天影院 | 成人手机电影网| 国产精品久久久久一区二区三区 | 最新不卡av在线| 亚洲人吸女人奶水| 亚洲国产中文字幕| 久久精品国产久精国产| 国产91丝袜在线播放| 99久久精品国产一区二区三区| 欧洲中文字幕精品| 欧美videofree性高清杂交| 久久色视频免费观看| 国产精品国产馆在线真实露脸 | 国产精品一区在线观看你懂的| 国产99久久久精品| 欧美日韩精品一区二区| 久久久欧美精品sm网站| 一区二区三区中文在线| 久久成人久久爱| 在线精品视频免费观看| 欧美成人国产一区二区| 1区2区3区精品视频| 日本美女一区二区三区视频| 国产大片一区二区| 欧美剧情片在线观看| 国产丝袜欧美中文另类| 图片区小说区区亚洲影院| 国产91在线观看丝袜| 欧美日产国产精品| 亚洲视频一区在线| 国内精品伊人久久久久av影院| 日本丰满少妇一区二区三区| 欧美mv日韩mv亚洲| 亚洲高清在线视频| 99久久久久免费精品国产| 精品国产乱码久久久久久老虎| 亚洲色图都市小说| 丁香婷婷综合激情五月色| 欧美一级高清片| 亚洲一区二区三区四区的| 成人动漫av在线| 久久综合九色综合欧美亚洲| 五月婷婷综合激情| 91免费版在线看| 欧美激情一区二区三区全黄| 日本不卡在线视频| 色88888久久久久久影院按摩| 久久久久久久久久久黄色| 麻豆一区二区三区| 欧美猛男男办公室激情| 一区二区在线观看免费视频播放| 粉嫩在线一区二区三区视频| 欧美成人伊人久久综合网| 香港成人在线视频| 欧美私模裸体表演在线观看| 《视频一区视频二区| 丁香六月久久综合狠狠色| 欧美精品一区二区三区久久久 | 精品久久久三级丝袜| 日韩影视精彩在线| 欧美久久久久久蜜桃| 午夜精品影院在线观看| 91麻豆.com| 一区二区三区四区亚洲| 色88888久久久久久影院按摩| 日韩美女视频19| 91丨九色丨尤物| 亚洲麻豆国产自偷在线| 在线视频国内自拍亚洲视频| 亚洲在线视频网站| 欧美日韩一二三|