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

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

?? sharedorb.java

?? 一個java方面的消息訂閱發(fā)送的源碼
?? JAVA
字號:
/**
 * Redistribution and use of this software and associated documentation
 * ("Software"), with or without modification, are permitted provided
 * that the following conditions are met:
 *
 * 1. Redistributions of source code must retain copyright
 *    statements and notices.  Redistributions must also contain a
 *    copy of this document.
 *
 * 2. 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.
 *
 * 3. The name "Exolab" must not be used to endorse or promote
 *    products derived from this Software without prior written
 *    permission of Exoffice Technologies.  For written permission,
 *    please contact info@exolab.org.
 *
 * 4. Products derived from this Software may not be called "Exolab"
 *    nor may "Exolab" appear in their names without prior written
 *    permission of Exoffice Technologies. Exolab is a registered
 *    trademark of Exoffice Technologies.
 *
 * 5. Due credit should be given to the Exolab Project
 *    (http://www.exolab.org/).
 *
 * THIS SOFTWARE IS PROVIDED BY EXOFFICE TECHNOLOGIES AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESSED 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
 * EXOFFICE TECHNOLOGIES OR ITS 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.
 *
 * Copyright 2004-2005 (C) Exoffice Technologies Inc. All Rights Reserved.
 *
 * $Id: SharedORB.java,v 1.6 2005/05/27 14:04:01 tanderson Exp $
 */
package org.exolab.jms.client.net;

import java.util.Map;

import java.rmi.NoSuchObjectException;
import java.rmi.RemoteException;
import java.rmi.StubNotFoundException;
import java.rmi.server.ExportException;
import java.rmi.server.ObjID;

import org.exolab.jms.net.connector.CallerListener;
import org.exolab.jms.net.connector.Caller;
import org.exolab.jms.net.orb.ORB;
import org.exolab.jms.net.orb.ORBFactory;
import org.exolab.jms.net.proxy.Proxy;
import org.exolab.jms.net.registry.LocalRegistry;
import org.exolab.jms.net.registry.Registry;


/**
 * Shared {@link ORB} instance.
 *
 * @author <a href="mailto:tma@netspace.net.au">Tim Anderson</a>
 * @version $Revision: 1.6 $ $Date: 2005/05/27 14:04:01 $
 */
public class SharedORB implements ORB {

    /**
     * The ORB to delegate requests to.
     */
    private final ORB _orb;

    /**
     * The singleton instance.
     */
    private static org.exolab.jms.net.orb.ORB _instance;


    /**
     * Construct a new <code>SharedORB</code>.
     *
     * @throws RemoteException for any error
     */
    private SharedORB() throws RemoteException {
        _orb = ORBFactory.createORB();
    }

    /**
     * Add a route for exported objects.
     *
     * @param uri   the URI to route
     * @param toURI the URI to route to
     * @throws RemoteException for any error
     */
    public void addRoute(String uri, String toURI) throws RemoteException {
        _orb.addRoute(uri, toURI);
    }

    /**
     * Returns a reference to the registry service.
     *
     * @return the registry service
     * @throws RemoteException if the service cannot be exported
     */
    public LocalRegistry getRegistry() throws RemoteException {
        return _orb.getRegistry();
    }

    /**
     * Returns a reference to a remote registry service.
     *
     * @param properties the connection properties. May be <code>null</code>.
     * @return the registry service
     * @throws RemoteException for any error
     */
    public Registry getRegistry(Map properties) throws RemoteException {
        return _orb.getRegistry(properties);
    }

    /**
     * Export an object on the default URI.
     *
     * @param object the object to export
     * @return a proxy which may be used to invoke methods on the object
     * @throws ExportException       if the object cannot be exported
     * @throws StubNotFoundException if the proxy class cannot be found
     */
    public Proxy exportObject(Object object)
            throws ExportException, StubNotFoundException {
        return _orb.exportObject(object);
    }

    /**
     * Export an object on a specific URI.
     *
     * @param object the object to export
     * @param uri    the URI via which connections to the object are made. If
     *               <code>null</code>, the default URI is used.
     * @return a proxy which may be used to invoke methods on the object
     * @throws ExportException       if the object cannot be exported
     * @throws StubNotFoundException if the proxy class cannot be found
     */
    public Proxy exportObject(Object object, String uri)
            throws ExportException, StubNotFoundException {
        return _orb.exportObject(object, uri);
    }

    /**
     * Export an object with a well known identifier on the default URI.
     *
     * @param object the object to export
     * @param objID  the well known object identifier
     * @return a proxy which may be used to invoke methods on the object
     * @throws ExportException       if the object cannot be exported
     * @throws StubNotFoundException if the proxy class cannot be found
     */
    public Proxy exportObject(Object object, ObjID objID)
            throws ExportException, StubNotFoundException {
        return _orb.exportObject(object, objID);
    }

    /**
     * Export an object with a well known identifier on a specific URI.
     *
     * @param object the object to export
     * @param objID  the well known object identifier
     * @param uri    the URI via which connections to the object are made
     * @return a proxy which may be used to invoke methods on the object
     * @throws ExportException       if the object cannot be exported
     * @throws StubNotFoundException if the proxy class cannot be found
     */
    public Proxy exportObject(Object object, ObjID objID, String uri)
            throws ExportException, StubNotFoundException {
        return _orb.exportObject(object, objID, uri);
    }

    /**
     * Export an object to the current remote caller. Only the remote caller may
     * perform invocations.
     *
     * @param object the object to export
     * @return a proxy which may be used to invoke methods on the object
     * @throws ExportException       if the object cannot be exported
     * @throws StubNotFoundException if the proxy class cannot be found
     */
    public Proxy exportObjectTo(Object object) throws ExportException,
            StubNotFoundException {
        return _orb.exportObjectTo(object);
    }

    /**
     * Export an object to a specific URI. Only callers from the target URI may
     * perform invocations.
     *
     * @param object the object to export
     * @param uri    the target URI from which connections to the object are
     *               made.
     * @return a proxy which may be used to invoke methods on the object
     * @throws ExportException       if the object cannot be exported
     * @throws StubNotFoundException if the proxy class cannot be found
     */
    public Proxy exportObjectTo(Object object, String uri)
            throws ExportException, StubNotFoundException {
        return _orb.exportObjectTo(object, uri);
    }

    /**
     * Export an object to a specific URI. Only callers from the target URI may
     * perform invocations.
     *
     * @param object      the object to export
     * @param uri         the target URI from which connections to the object
     *                    are made.
     * @param principal   the security principal. May be <code>null</code>
     * @param credentials the security credentials. May be <code>null</code>
     * @return a proxy which may be used to invoke methods on the object
     * @throws ExportException       if the object cannot be exported
     * @throws StubNotFoundException if the proxy class cannot be found
     */
    public Proxy exportObjectTo(Object object, String uri, String principal,
                                String credentials)
            throws ExportException, StubNotFoundException {
        return _orb.exportObjectTo(object, uri, principal, credentials);
    }

    /**
     * Unexport an object.
     *
     * @param object the object to export
     * @throws NoSuchObjectException if the object isn't exported
     */
    public void unexportObject(Object object) throws NoSuchObjectException {
        _orb.unexportObject(object);
    }

    /**
     * Returns the current caller.
     *
     * @return the current caller, or <code>null</code> if no call is in
     *         progress
     * @throws RemoteException for any error
     */
    public Caller getCaller() throws RemoteException {
        return _orb.getCaller();
    }

    /**
     * Register a caller event listener.
     *
     * @param uri      the remote URI to listen on
     * @param listener the listener to notify
     * @throws RemoteException for any error
     */
    public void addCallerListener(String uri, CallerListener listener)
            throws RemoteException {
        _orb.addCallerListener(uri, listener);
    }

    /**
     * Deregister a caller event listener.
     *
     * @param uri      the remote URI the listener is listening for events on
     * @param listener the listener to remove
     * @throws RemoteException for any error
     */
    public void removeCallerListener(String uri, CallerListener listener)
            throws RemoteException {
        _orb.removeCallerListener(uri, listener);
    }

    /**
     * Shuts down the ORB.
     *
     * @throws RemoteException for any error
     */
    public void shutdown() throws RemoteException {
        _orb.shutdown();
    }

    /**
     * Returns the singleton ORB instance.
     *
     * @return the singleton ORB instance
     * @throws RemoteException for any error
     */
    public static synchronized ORB getInstance() throws RemoteException {
        if (_instance == null) {
            _instance = new SharedORB();
        }
        return _instance;
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一区二区三区四区| 麻豆精品久久精品色综合| 成人自拍视频在线观看| 国产欧美精品一区二区色综合| 国产剧情av麻豆香蕉精品| 国产亚洲婷婷免费| 99视频有精品| 图片区小说区国产精品视频| 日韩视频在线观看一区二区| 国产在线精品一区二区夜色| 中文字幕的久久| 在线亚洲欧美专区二区| 图片区日韩欧美亚洲| 久久久国产午夜精品| 色综合久久六月婷婷中文字幕| 午夜久久久影院| 亚洲精品一线二线三线| 91在线小视频| 青青草国产成人99久久| 国产日韩一级二级三级| 91极品美女在线| 九九热在线视频观看这里只有精品| 国产亚洲欧美色| 欧美成人一级视频| 99久久精品国产观看| 日韩福利电影在线| 国产日韩亚洲欧美综合| 欧美另类z0zxhd电影| 国产寡妇亲子伦一区二区| 亚洲永久免费av| 久久久久成人黄色影片| 欧美日韩国产123区| 国产成人aaaa| 日韩经典中文字幕一区| 国产精品传媒在线| 日韩久久免费av| 日本久久电影网| 国产精品一区二区免费不卡| 亚洲国产精品久久人人爱| 欧美高清一级片在线观看| 欧美一区2区视频在线观看| 色域天天综合网| 国产成人综合在线观看| 毛片av一区二区| 亚洲综合无码一区二区| 国产精品午夜久久| 精品国产电影一区二区| 在线播放视频一区| 在线中文字幕一区二区| 不卡欧美aaaaa| 国产一区二区在线观看免费| 日本三级亚洲精品| 亚洲综合在线视频| 亚洲人成网站影音先锋播放| 国产女人水真多18毛片18精品视频| 欧美一级高清片在线观看| 日本一区二区在线不卡| 精品动漫一区二区三区在线观看| 欧美日韩你懂的| 色婷婷国产精品| av中文字幕亚洲| 不卡视频在线看| 成人精品小蝌蚪| 成人午夜视频在线| 国产精品一级二级三级| 九九精品一区二区| 极品少妇一区二区三区精品视频| 日韩中文欧美在线| 日韩国产在线观看一区| 亚洲成人免费视| 亚洲成人免费看| 日韩精彩视频在线观看| 日韩高清在线电影| 日韩av一区二区三区四区| 亚洲成人激情综合网| 亚洲高清免费在线| 偷窥国产亚洲免费视频 | 日韩欧美一区二区久久婷婷| 欧美久久一二区| 在线电影国产精品| 欧美一区二区福利在线| 欧美va在线播放| www国产精品av| 国产欧美视频一区二区三区| 国产亚洲欧美日韩在线一区| 亚洲国产精品成人综合色在线婷婷| 2020国产精品久久精品美国| 久久奇米777| 国产精品全国免费观看高清 | 国产精品女上位| 中文字幕在线观看一区| 中文字幕在线不卡国产视频| 亚洲欧美综合另类在线卡通| 一区二区三区小说| 午夜视频久久久久久| 久久精品国产免费看久久精品| 国产精品原创巨作av| 粉嫩欧美一区二区三区高清影视| 99久久亚洲一区二区三区青草| 在线精品视频免费播放| 日韩一区二区三区三四区视频在线观看| 日韩女优视频免费观看| 国产人成亚洲第一网站在线播放 | 日韩欧美国产一区二区在线播放| 日韩欧美国产三级电影视频| 国产精品毛片久久久久久久| 亚洲一区免费观看| 精品系列免费在线观看| 99久久精品国产一区二区三区| 欧美日韩成人高清| 久久精品亚洲国产奇米99| 亚洲男人天堂一区| 日本中文在线一区| 成人av第一页| 91精品国产欧美一区二区成人| 久久精品一区二区三区不卡 | 亚洲h在线观看| 国产乱妇无码大片在线观看| 欧美午夜电影网| 久久蜜臀精品av| 亚洲高清久久久| 国产成人午夜99999| 欧美精品777| 国产精品免费视频观看| 奇米四色…亚洲| 91一区二区三区在线观看| 日韩欧美在线观看一区二区三区| 日韩毛片精品高清免费| 精品在线播放免费| 精品污污网站免费看| 国产天堂亚洲国产碰碰| 日本亚洲电影天堂| 91麻豆福利精品推荐| 2023国产精品视频| 午夜国产精品一区| www.亚洲人| 久久亚洲私人国产精品va媚药| 亚洲成人av一区二区三区| av在线播放成人| 国产日韩亚洲欧美综合| 奇米一区二区三区| 欧美无乱码久久久免费午夜一区| 欧美国产成人精品| 国产自产v一区二区三区c| 91精品国产麻豆国产自产在线| 亚洲欧美一区二区不卡| 成人av小说网| 国产日韩欧美激情| 国内精品国产成人| 日韩美女在线视频| 日本vs亚洲vs韩国一区三区二区| 欧美综合天天夜夜久久| 综合亚洲深深色噜噜狠狠网站| 国产精品1区2区3区| 精品电影一区二区| 国产主播一区二区| 欧美xxxxx牲另类人与| 奇米精品一区二区三区在线观看| 欧美日韩久久一区| 婷婷中文字幕一区三区| 欧美无乱码久久久免费午夜一区| 亚洲免费av网站| 一本一本大道香蕉久在线精品 | 免费看欧美女人艹b| 欧美男人的天堂一二区| 亚洲成人资源网| 欧美人与禽zozo性伦| 日韩专区中文字幕一区二区| 在线91免费看| 久久精品国产一区二区三| 日韩美女视频在线| 国产一区二区久久| 欧美经典三级视频一区二区三区| 国产精品一区二区久久不卡| 国产清纯白嫩初高生在线观看91| 国产一区 二区| 国产精品丝袜久久久久久app| 成人av在线资源网站| 最好看的中文字幕久久| 欧美体内she精视频| 日韩在线a电影| 亚洲精品一线二线三线| 国产盗摄视频一区二区三区| 国产精品国产三级国产专播品爱网| 99久久99久久久精品齐齐| 亚洲五码中文字幕| 91精品久久久久久蜜臀| 国产精品综合一区二区| ㊣最新国产の精品bt伙计久久| 日本高清成人免费播放| 日本一区中文字幕| 国产日韩一级二级三级| 色婷婷综合久久久久中文一区二区 | 欧美成人a∨高清免费观看| 国产米奇在线777精品观看| 国产精品久久久久久久蜜臀| 欧美亚洲综合另类| 国产中文一区二区三区| 亚洲欧美国产三级| 日韩精品影音先锋|