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

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

?? oscar.java

?? OSGI 的 源碼實現,采用JAVA書寫
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
     *          bundle has been uninstalled.    **/    protected boolean isBundlePersistentlyStarted(Bundle bundle)    {        if (bundle.getState() == Bundle.UNINSTALLED)        {            throw new IllegalArgumentException("Bundle is uninstalled.");        }        return            (((BundleImpl) bundle).getInfo().getPersistentState()                == Bundle.ACTIVE);    }    //    // Oscar framework attribute methods.    //    /**     * Returns the current status of Oscar; this information is     * used to determine which actions to perform during various     * execution activities.  For example, during startup a bundle's     * state should not be saved since the state was recorded at     * and at shutdown a bundle's state should not be saved since     * since the last active state is used.     *     * @return <tt>UNKNOWN_STATUS</tt> if Oscar is in a bad state,     *         <tt>RUNNING_STATUS</tt> if Oscar is up and running,     *         <tt>STARTING_STATUS</tt> if Oscar is in its startup sequence, or     *         <tt>STOPPING_STATUS</tt> if Oscar is in its shutdown sequence.    **/    public int getFrameworkStatus()    {        return m_oscarStatus;    }    /**     * Returns the framework flag that indicates whether Oscar is     * strictly adhering to the OSGi specification. If this is false,     * then Oscar may provides some extended functionality that is     * not part of the OSGi specification.     * @return <tt>true</tt> if Oscar is in strict mode, <tt>false</tt> otherwise.     * @deprecate use <tt>getConfigProperty(String name)</tt> instead.    **/    public boolean isStrictOSGi()    {        String strict = getConfigProperty(OscarConstants.STRICT_OSGI_PROP);        return (strict == null) ? true : strict.equals("true");    }    //    // Package management methods.    //    /**     * Returns the bundle that exports the specified package. If the     * package is not currently resolved, then it is resolved and the     * corresponding bundle is returned.     *     * @param name the name of the exported package to find.     * @return the exported package or null if no matching package was found.    **/    private BundleImpl findExportingBundle(String pkgName)    {        // Use the search policy utility method to try to        // resolve the package.        BundleImpl bundle = null;        ImportSearchPolicy search =            (ImportSearchPolicy) m_mgr.getSearchPolicy();        int[] version = { 0, 0, 0 };        Module exporter = search.resolveImportTarget(pkgName, version);        if (exporter != null)        {            bundle = (BundleImpl) getBundle(                BundleInfo.getBundleIdFromModuleId(exporter.getId()));        }        return bundle;    }    /**     * Returns the exported package associated with the specified     * package name. This is used by the PackageAdmin service     * implementation.     *     * @param name the name of the exported package to find.     * @return the exported package or null if no matching package was found.    **/    protected ExportedPackage getExportedPackage(String name)    {        BundleImpl bundle = findExportingBundle(name);        if (bundle != null)        {            // We need to find the version of the exported package, but this            // is tricky since there may be multiple versions of the package            // offered by a given bundle, since multiple revisions of the            // bundle JAR file may exist if the bundle was updated without            // refreshing the framework. In this case, each revision of the            // bundle JAR file is represented as a module in the BundleInfo            // module array, which is ordered from oldest to newest. We assume            // that the first module found to be exporting the package is the            // provider of the package, which makes sense since it must have            // been resolved first.            Module[] modules = bundle.getInfo().getModules();            for (int modIdx = 0; modIdx < modules.length; modIdx++)            {                Object version =                    ImportSearchPolicy.getExportVersion(modules[modIdx], name);                if (version != null)                {                    return new ExportedPackageImpl(                        this, bundle, name, (int[]) version);                }            }        }        return null;    }    /**     * Returns an array of all actively exported packages from the specified     * bundle or if the specified bundle is <tt>null</tt> an array     * containing all actively exported packages by all bundles.     *     * @param b the bundle whose exported packages are to be retrieved     *        or <tt>null</tt> if the exported packages of all bundles are     *        to be retrieved.     * @return an array of exported packages.    **/    protected ExportedPackage[] getExportedPackages(Bundle b)    {        ExportedPackage[] pkgs = null;        List list = new ArrayList();        // If a bundle is specified, then return its        // exported packages.        if (b != null)        {            BundleImpl bundle = (BundleImpl) b;            getExportedPackages(bundle, list);        }        // Otherwise return all exported packages.        else        {            // First get exported packages from uninstalled bundles.            for (int bundleIdx = 0;                (m_uninstalledBundles != null) && (bundleIdx < m_uninstalledBundles.length);                bundleIdx++)            {                BundleImpl bundle = m_uninstalledBundles[bundleIdx];                getExportedPackages(bundle, list);            }            // Now get exported packages from installed bundles.            Bundle[] bundles = getBundles();            for (int bundleIdx = 0; bundleIdx < bundles.length; bundleIdx++)            {                BundleImpl bundle = (BundleImpl) bundles[bundleIdx];                getExportedPackages(bundle, list);            }        }        return (ExportedPackage[]) list.toArray(new ExportedPackage[list.size()]);    }    /**     * Adds any current active exported packages from the specified bundle     * to the passed in list.     * @param bundle the bundle from which to retrieve exported packages.     * @param list the list to which the exported packages are added    **/    private void getExportedPackages(BundleImpl bundle, List list)    {        // Since a bundle may have many modules associated with it,        // one for each revision in the cache, search each module        // for each revision to get all exports.        Module[] modules = bundle.getInfo().getModules();        for (int modIdx = 0; modIdx < modules.length; modIdx++)        {            Object[][] exports =                ImportSearchPolicy.getExportsAttribute(modules[modIdx]);            if (exports.length > 0)            {                for (int expIdx = 0; expIdx < exports.length; expIdx++)                {                    // If the resolving module is the same as the current                    // module, then this bundle exports the package so add                    // the package to the list of exported packages.                    if (exports[expIdx][ImportSearchPolicy.RESOLVING_MODULE_IDX]                        == modules[modIdx])                    {                        list.add(new ExportedPackageImpl(                            this, bundle,                            (String) exports[expIdx][ImportSearchPolicy.IDENTIFIER_IDX],                            (int[]) exports[expIdx][ImportSearchPolicy.VERSION_IDX]));                    }                }            }        }    }    protected Bundle[] getImportingBundles(ExportedPackage ep)    {        // Get exporting bundle; we need to use this internal        // method because the spec says ep.getExportingBundle()        // should return null if the package is stale.        BundleImpl exporter = (BundleImpl)            ((ExportedPackageImpl) ep).getExportingBundleInternal();        BundleInfo exporterInfo = exporter.getInfo();        String exportName = ep.getName();        // Create list for storing importing bundles.        List list = new ArrayList();        Bundle[] bundles = getBundles();        // Check all bundles to see who imports the package.        for (int bundleIdx = 0; bundleIdx < bundles.length; bundleIdx++)        {            BundleImpl bundle = (BundleImpl) bundles[bundleIdx];            // Flag to short-circuit the loops if we find that            // the current bundle does import the package.            boolean doesImport = false;            // Check the imports and exports of each bundle.            String[] searchAttrs = {                ImportSearchPolicy.IMPORTS_ATTR,                ImportSearchPolicy.EXPORTS_ATTR            };            for (int attrIdx = 0;                (!doesImport) && (attrIdx < searchAttrs.length);                attrIdx++)            {                // Check all revisions of each bundle.                Module[] modules = bundle.getInfo().getModules();                for (int modIdx = 0;                    (!doesImport) && (modIdx < modules.length);                    modIdx++)                {                    Object[][] imports =                        ImportSearchPolicy.getImportsOrExports(                            modules[modIdx], searchAttrs[attrIdx]);                    for (int importIdx = 0;                        (!doesImport) && (importIdx < imports.length);                        importIdx++)                    {                        // Get import package name.                        String importName = (String)                            imports[importIdx][ImportSearchPolicy.IDENTIFIER_IDX];                        // Get resolving module.                        Module resolvingModule = (Module)                            imports[importIdx][ImportSearchPolicy.RESOLVING_MODULE_IDX];                        // If the export and import package names are the same                        // and the resolving module is associated with the                        // exporting, then add current bundle to list.                        if (exportName.equals(importName) &&                            exporterInfo.hasModule(resolvingModule))                        {                            // Add the bundle to the list of importers.                            list.add(bundles[bundleIdx]);                            // Set the import flag so we exit the loops.                            doesImport = true;                        }                    }                }            }        }        // Return the results.        if (list.size() > 0)        {            return (Bundle[]) list.toArray(new Bundle[list.size()]);        }        return null;    }    protected void refreshPackages(Bundle[] targets)    {        if (System.getSecurityManager() != null)        {            AccessController.checkPermission(m_adminPerm);        }        synchronized (m_adminLock)        {            // If targets is null, then refresh all pending bundles.            if (targets == null)            {                ArrayList list = new ArrayList();                // First add all uninstalled bundles.                for (int i = 0;                    (m_uninstalledBundles != null) && (i < m_uninstalledBundles.length);                    i++)                {                    list.add(m_uninstalledBundles[i]);                }                m_uninstalledBundles = null;                // Then add all updated bundles.                Iterator iter = m_installedBundleMap.values().iterator();                while (iter.hasNext())                {                    BundleImpl bundle = (BundleImpl) iter.next();                    if (bundle.getInfo().isRemovalPending())                    {                        list.add(bundle);                    }                }                // Create an array.                if (list.size() > 0)                {                    targets = (Bundle[]) list.toArray(new Bundle[list.size()]);                }            }            // If there are targets, then find all dependencies            // for each one.            if (targets != null)            {                // Create map of bundles that import the packages                // from the target bundles.                HashMap map = new HashMap();                for (int targetIdx = 0; targetIdx < targets.length; targetIdx++)                {                    BundleImpl target = (BundleImpl) targets[targetIdx];                    // Add the current target bundle to the map of                    // bundles to be refreshed using a RefreshHelper.                    // Only these target bundles should be refreshed.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日本在线观看| 最新热久久免费视频| 国产日韩欧美一区二区三区乱码| 国产精品久久久久影院| 免费观看成人av| 99国产精品国产精品久久| 欧美videos中文字幕| 亚洲日本在线天堂| 69av一区二区三区| 一区在线中文字幕| 国产成人鲁色资源国产91色综 | 亚洲精品网站在线观看| 精品夜夜嗨av一区二区三区| 欧美日韩国产综合视频在线观看| 久久午夜羞羞影院免费观看| 日韩电影在线一区二区| 欧美在线视频日韩| 专区另类欧美日韩| 国产久卡久卡久卡久卡视频精品| 日韩一区二区三区免费看| 亚洲一区在线观看网站| 成人avav在线| 国产精品私人影院| 国产精品一区在线观看乱码| 日韩一区二区三免费高清| 亚洲成年人影院| 欧美亚洲综合另类| 亚洲网友自拍偷拍| 欧美综合一区二区| 亚洲精品菠萝久久久久久久| 99国产欧美另类久久久精品| 国产精品久久久一区麻豆最新章节| 国产老妇另类xxxxx| 国产色产综合产在线视频| 国产综合成人久久大片91| 欧美一卡二卡三卡四卡| 免费日韩伦理电影| 精品少妇一区二区三区日产乱码| 日韩国产精品91| 日韩欧美在线不卡| 精彩视频一区二区| 国产亚洲成aⅴ人片在线观看| 国产一区二区在线视频| 久久综合九色综合欧美98| 国产成人午夜视频| 亚洲欧洲www| 日本道免费精品一区二区三区| 亚洲男人的天堂在线观看| 欧美主播一区二区三区| 亚洲国产综合人成综合网站| 欧美女孩性生活视频| 日韩精品成人一区二区在线| 日韩欧美国产一区在线观看| 韩国女主播一区| 国产精品久久久久久久第一福利 | 国产精品女同互慰在线看| 成人精品免费视频| 国产一区二区91| 久久精品网站免费观看| 一本色道久久加勒比精品| 亚洲综合色噜噜狠狠| 777午夜精品视频在线播放| 国产精一品亚洲二区在线视频| 国产午夜亚洲精品午夜鲁丝片 | 精彩视频一区二区三区| 亚洲国产成人在线| 欧美日韩在线三级| 国产酒店精品激情| 亚洲电影你懂得| 精品日韩成人av| 91蜜桃免费观看视频| 麻豆91在线观看| 亚洲日本护士毛茸茸| 日韩欧美高清在线| 欧美综合亚洲图片综合区| 国产乱人伦偷精品视频不卡 | 久久女同精品一区二区| 91蝌蚪porny九色| 玖玖九九国产精品| 亚洲欧美一区二区不卡| 精品免费一区二区三区| 欧美性视频一区二区三区| 激情综合五月婷婷| 亚洲国产精品久久一线不卡| 国产亚洲美州欧州综合国| 欧美日韩一区二区电影| 国产精品1024| 琪琪久久久久日韩精品| 亚洲码国产岛国毛片在线| 26uuu另类欧美| 欧美高清精品3d| 99久久国产综合精品色伊 | 久久九九久久九九| 欧美在线综合视频| 不卡av在线免费观看| 日韩免费电影网站| 欧美人动与zoxxxx乱| 亚洲精品国产无天堂网2021| 色猫猫国产区一区二在线视频| 麻豆一区二区在线| 亚洲国产日韩一区二区| 国产精品麻豆99久久久久久| 日韩欧美123| 毛片av中文字幕一区二区| 精品国产乱码久久久久久老虎| 欧美日韩在线三区| 精品国产凹凸成av人导航| 国产亚洲美州欧州综合国| 亚洲欧美综合另类在线卡通| 亚洲在线观看免费视频| 麻豆成人免费电影| 精品国产自在久精品国产| 亚洲国产精品v| 亚洲综合一区在线| 日本成人在线不卡视频| 国产精品99久| 欧美午夜一区二区三区| 久久久亚洲精华液精华液精华液| 国产精品精品国产色婷婷| 日日摸夜夜添夜夜添精品视频 | 欧美一区二区三区视频| 精品va天堂亚洲国产| 亚洲欧美自拍偷拍| 久久精品免费观看| aaa欧美日韩| 欧美v亚洲v综合ⅴ国产v| 亚洲精品视频在线观看网站| 国产一区二区中文字幕| 欧美体内she精高潮| 久久亚洲春色中文字幕久久久| 亚洲欧美国产77777| 狠狠色丁香婷婷综合久久片| 色综合天天综合网国产成人综合天| 91精品国产综合久久久久| 日韩一区日韩二区| 国产资源精品在线观看| 91精品在线一区二区| 亚洲欧美影音先锋| 国产一区二区三区国产| 欧美日韩在线直播| 中文字幕制服丝袜成人av | 亚洲国产精品ⅴa在线观看| 丝袜亚洲另类欧美| 91小视频在线免费看| 精品国产成人在线影院| 亚洲一线二线三线视频| 99热99精品| 欧美极品aⅴ影院| 久久精品72免费观看| 欧美三级资源在线| 一区二区不卡在线视频 午夜欧美不卡在 | 欧美三级视频在线观看| 国产精品视频一二三区| 国产伦精品一区二区三区免费迷| 欧美日韩一级黄| 一区二区三区欧美| 99精品国产热久久91蜜凸| 中文一区一区三区高中清不卡| 激情丁香综合五月| 日韩视频123| 蜜桃精品视频在线| 制服丝袜中文字幕亚洲| 五月天中文字幕一区二区| 欧美视频精品在线| 香蕉影视欧美成人| 欧美日韩在线播放三区| 婷婷久久综合九色综合绿巨人| 91传媒视频在线播放| 亚洲狠狠爱一区二区三区| 精品视频在线免费| 日本aⅴ亚洲精品中文乱码| 91精品国产91久久久久久一区二区| 亚洲成人午夜影院| 538在线一区二区精品国产| 同产精品九九九| 日韩限制级电影在线观看| 日韩va亚洲va欧美va久久| 欧美日韩在线三级| 男女性色大片免费观看一区二区| 欧美一级在线视频| 久久99久久99精品免视看婷婷 | 日本人妖一区二区| 日韩视频永久免费| 精品一区二区久久久| 国产视频一区在线播放| 成人激情免费网站| 亚洲最色的网站| 欧美一区二区精品在线| 极品少妇xxxx精品少妇| 国产亚洲欧美激情| 色哟哟精品一区| 免费看欧美美女黄的网站| 欧美精品一区男女天堂| 不卡一区二区中文字幕| 亚洲午夜av在线| 精品福利av导航| 91伊人久久大香线蕉| 日日摸夜夜添夜夜添精品视频| 久久午夜羞羞影院免费观看| 97久久超碰国产精品|