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

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

?? servicepermission.java

?? OSGI 的 源碼實現,采用JAVA書寫
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * $Header: /cvshome/repository/org/osgi/framework/ServicePermission.java,v 1.8 2002/09/23 15:41:22 hargrave 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.IOException;import java.security.BasicPermission;import java.security.Permission;import java.security.PermissionCollection;import java.util.Enumeration;import java.util.Hashtable;/** * Indicates a bundle's authority to register or get a service. * <ul> * <li>The <tt>ServicePermission.REGISTER</tt> action allows a bundle * to register a service on the specified names. * <li>The <tt>ServicePermission.GET</tt> action allows a bundle to detect a service and * get it. * </ul> * Permission to get a service is required in order to detect events regarding the service. * Untrusted bundles should not be able to detect the presence of certain services unless they have * the appropriate <tt>ServicePermission</tt> to get the specific service. * * @version $Revision: 1.8 $ * @author Open Services Gateway Initiative */final public class ServicePermission extends BasicPermission{    /**     * The action string <tt>get</tt> (Value is "get").     */    public final static String GET  = "get";    /**     * The action string <tt>register</tt> (Value is "register").     */    public final static String REGISTER = "register";    private final static int ACTION_GET             = 0x00000001;    private final static int ACTION_REGISTER        = 0x00000002;    private final static int ACTION_ALL             = ACTION_GET | ACTION_REGISTER;    private final static int ACTION_NONE            = 0;    private final static int ACTION_ERROR           = 0x80000000;    /**     * The actions mask.     */    private transient int action_mask = ACTION_NONE;    /**     * The actions in canonical form.     *     * @serial     */    private String actions = null;    /**     * Create a new ServicePermission.     *     * <p>The name of the service is specified as a fully qualified class name.     * <pre>     * ClassName ::= &lt;class name&gt; | &lt;class name ending in ".*"&gt;     * </pre>     * Examples:     * <pre>     *    org.osgi.service.http.HttpService     *    org.osgi.service.http.*     *    org.osgi.service.snmp.*     * </pre>     *     * <p>There are two possible actions: <tt>get</tt> and <tt>register</tt>.     * The <tt>get</tt> permission allows the owner of this permission     * to obtain a service with this name. The <tt>register</tt> permission     * allows the bundle to register a service under that name.     *     * @param name class name     * @param actions <tt>get</tt>, <tt>register</tt> (canonical order)     */    public ServicePermission(String name, String actions)    {        this(name, getMask(actions));    }    /**     * Package private constructor used by ServicePermissionCollection.     *     * @param name class name     * @param action mask     */    ServicePermission(String name, int mask)    {        super(name);        init(mask);    }    /**     * Called by constructors and when deserialized.     *     * @param action mask     */    private void init(int mask)    {        if ((mask == ACTION_NONE) ||            ((mask & ACTION_ALL) != mask))        {            throw new IllegalArgumentException("invalid action string");        }        action_mask = mask;    }    /**     * Parse action string into action mask.     *     * @param actions Action string.     * @return action mask.     */    private static int getMask(String actions)    {    boolean seencomma = false;    int mask = ACTION_NONE;    if (actions == null) {        return mask;    }    char[] a = actions.toCharArray();    int i = a.length - 1;    if (i < 0)        return mask;    while (i != -1) {        char c;        // skip whitespace        while ((i!=-1) && ((c = a[i]) == ' ' ||                  c == '\r' ||                  c == '\n' ||                  c == '\f' ||                  c == '\t'))        i--;        // check for the known strings        int matchlen;        if (i >= 2 && (a[i-2] == 'g' || a[i-2] == 'G') &&              (a[i-1] == 'e' || a[i-1] == 'E') &&              (a[i] == 't' || a[i] == 'T'))        {        matchlen = 3;        mask |= ACTION_GET;        } else if (i >= 7 && (a[i-7] == 'r' || a[i-7] == 'R') &&                       (a[i-6] == 'e' || a[i-6] == 'E') &&                       (a[i-5] == 'g' || a[i-5] == 'G') &&                 (a[i-4] == 'i' || a[i-4] == 'I') &&                 (a[i-3] == 's' || a[i-3] == 'S') &&                 (a[i-2] == 't' || a[i-2] == 'T') &&                 (a[i-1] == 'e' || a[i-1] == 'E') &&                 (a[i] == 'r' || a[i] == 'R'))        {        matchlen = 8;        mask |= ACTION_REGISTER;        } else {        // parse error        throw new IllegalArgumentException(            "invalid permission: " + actions);        }        // make sure we didn't just match the tail of a word        // like "ackbarfregister".  Also, skip to the comma.        seencomma = false;        while (i >= matchlen && !seencomma) {        switch(a[i-matchlen]) {        case ',':            seencomma = true;            /*FALLTHROUGH*/        case ' ': case '\r': case '\n':        case '\f': case '\t':            break;        default:            throw new IllegalArgumentException("invalid permission: " +                             actions);        }        i--;        }        // point i at the location of the comma minus one (or -1).        i -= matchlen;    }    if (seencomma) {        throw new IllegalArgumentException("invalid permission: " +                        actions);    }    return mask;    }    /**     * Determines if a <tt>ServicePermission</tt> object "implies" the     * specified permission.     *     * @param p The target permission to check.     * @return <tt>true</tt> if the specified permission is implied by     * this object; <tt>false</tt> otherwise.     */    public boolean implies(Permission p)    {        if (p instanceof ServicePermission)        {            ServicePermission target = (ServicePermission) p;            return(((action_mask & target.action_mask)==target.action_mask) &&           super.implies(p));        }        return(false);    }    /**     * Returns the canonical string representation of the actions.     * Always returns present actions in the following order:     * <tt>get</tt>, <tt>register</tt>.     * @return The canonical string representation of the actions.     */    public String getActions()    {        if (actions == null)        {            StringBuffer sb = new StringBuffer();            boolean comma = false;            if ((action_mask & ACTION_GET) == ACTION_GET)            {                sb.append(GET);                comma = true;            }            if ((action_mask & ACTION_REGISTER) == ACTION_REGISTER)            {                if (comma) sb.append(',');

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩免费性生活视频播放| 亚洲视频狠狠干| 亚洲卡通欧美制服中文| 精品一区二区三区香蕉蜜桃| 99精品在线免费| 精品免费视频一区二区| 亚洲一区国产视频| 99久久伊人网影院| 久久久久国产精品麻豆ai换脸| 亚洲一二三四久久| 91社区在线播放| 日本一区二区三区四区| 麻豆久久久久久| 欧美肥妇bbw| 一区二区三区免费观看| jiyouzz国产精品久久| 久久精品夜色噜噜亚洲aⅴ| 日本成人在线一区| 欧美性色aⅴ视频一区日韩精品| 欧美激情一区二区三区四区 | 日韩精品中文字幕一区二区三区| 亚洲欧洲99久久| voyeur盗摄精品| 视频一区欧美精品| 欧美日本免费一区二区三区| 亚洲免费大片在线观看| 99久久婷婷国产| 国产精品成人一区二区艾草| 东方aⅴ免费观看久久av| 久久久一区二区三区| 免费三级欧美电影| 日韩午夜激情电影| 美女视频黄a大片欧美| 欧美一区二区在线不卡| 麻豆一区二区三区| www国产精品av| 国产成人亚洲精品狼色在线| 亚洲国产激情av| 色成年激情久久综合| 亚洲永久免费视频| 欧美人妇做爰xxxⅹ性高电影| 午夜视频久久久久久| 91精品国产欧美一区二区18 | 国产一区二区美女| 久久综合一区二区| 粉嫩高潮美女一区二区三区| 国产精品久久久久久户外露出| 99麻豆久久久国产精品免费| 国产精品一区2区| 久久亚洲二区三区| aaa欧美色吧激情视频| 亚洲综合免费观看高清完整版在线| 在线中文字幕不卡| 久久国产精品免费| 国产欧美日韩卡一| 91成人国产精品| 精品在线你懂的| 国产精品超碰97尤物18| 欧美人与性动xxxx| 国产一区二区美女| 亚洲综合色视频| 国产亚洲欧美日韩俺去了| 91麻豆国产香蕉久久精品| 午夜电影久久久| 国产日韩v精品一区二区| 色综合视频一区二区三区高清| 亚洲国产一区二区视频| 久久中文字幕电影| 欧美日韩在线播放一区| 国内精品第一页| 一区二区三区日韩| 国产婷婷精品av在线| 欧美军同video69gay| 国产黄色精品视频| 日韩精品一卡二卡三卡四卡无卡| 国产日韩欧美不卡| 91精品国产一区二区三区| 成人动漫在线一区| 麻豆传媒一区二区三区| 亚洲精选视频在线| 久久精品视频免费观看| 欧美日本在线视频| 色综合视频一区二区三区高清| 激情文学综合插| 亚洲福利电影网| 国产精品久99| 久久久美女毛片| 欧美一区二区福利在线| 一本大道久久a久久精品综合| 国产曰批免费观看久久久| 丝袜美腿亚洲综合| 亚洲精品ww久久久久久p站| 久久久夜色精品亚洲| 欧美久久婷婷综合色| 色综合久久久网| 国产成人精品综合在线观看 | 亚洲国产日韩精品| 成人免费小视频| 欧美国产精品一区| 欧美精品一区二| 精品国产免费久久| 日韩精品一区二区三区蜜臀 | 欧美a级理论片| 亚洲bt欧美bt精品777| 亚洲免费电影在线| 亚洲欧洲制服丝袜| 亚洲特级片在线| 亚洲婷婷综合色高清在线| 国产欧美一区二区三区在线看蜜臀| 久久综合色之久久综合| 日韩欧美中文一区| 日韩一区二区免费在线观看| 欧美精品在线视频| 91麻豆精品国产91久久久更新时间| 欧美日韩久久一区二区| 91麻豆精品国产综合久久久久久 | 天堂成人国产精品一区| av亚洲精华国产精华精华| 久久午夜色播影院免费高清 | 亚洲男人都懂的| 国产精品久久夜| 国产精品人成在线观看免费| 国产人成亚洲第一网站在线播放 | 日韩一级完整毛片| 日韩精品一区在线| 国产偷国产偷亚洲高清人白洁 | youjizz国产精品| 99久久婷婷国产综合精品电影| 91色porny蝌蚪| 91成人看片片| 欧美一卡2卡3卡4卡| 欧美精品一区二区三区蜜桃视频| 欧美不卡视频一区| 中文字幕巨乱亚洲| 亚洲精品伦理在线| 免费高清不卡av| 国产精品一区二区三区乱码| 97se狠狠狠综合亚洲狠狠| 欧美色涩在线第一页| 日韩三级视频在线看| 久久嫩草精品久久久精品一| 最新高清无码专区| 婷婷国产在线综合| 国产一区二区三区四区五区美女 | 蜜臀av一区二区| 国产风韵犹存在线视精品| 色综合天天性综合| 欧美一卡二卡在线观看| 中文字幕欧美日韩一区| 一区二区三区四区亚洲| 免费日韩伦理电影| 91蝌蚪porny| 日韩欧美不卡在线观看视频| 国产精品久久久久三级| 天天射综合影视| 成人高清伦理免费影院在线观看| 在线观看视频91| 国产网站一区二区三区| 亚洲成人综合在线| 成人午夜免费电影| 91麻豆精品国产91久久久使用方法| 久久久精品影视| 肉色丝袜一区二区| 91视频观看视频| 久久久久亚洲综合| 日韩专区在线视频| 91网站最新网址| 久久久久久日产精品| 日本亚洲免费观看| 在线观看一区二区精品视频| 中文久久乱码一区二区| 秋霞国产午夜精品免费视频| 色综合久久综合中文综合网| 2024国产精品视频| 奇米影视一区二区三区| 色丁香久综合在线久综合在线观看| 久久久久国产免费免费| 蜜臀久久久99精品久久久久久| 色婷婷精品久久二区二区蜜臂av | 蜜桃视频一区二区| 欧美最新大片在线看 | 亚洲v精品v日韩v欧美v专区| 99久久99久久精品免费观看 | 亚洲国产一区二区a毛片| 风间由美一区二区av101| 精品嫩草影院久久| 免费在线欧美视频| 欧美精品免费视频| 亚洲成a人v欧美综合天堂下载| 91麻豆蜜桃一区二区三区| 综合欧美一区二区三区| 99精品视频在线观看| 国产精品久久国产精麻豆99网站| 国产精品456露脸| 国产视频一区在线播放| 国产一区二区三区免费观看| 久久久久久9999| 粉嫩av一区二区三区粉嫩| 国产精品国产三级国产普通话99| 不卡的看片网站|