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

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

?? activationgroup.java

?? JAVA基本類源代碼,大家可以學(xué)習(xí)學(xué)習(xí)!
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
    {	SecurityManager security = System.getSecurityManager();	if (security != null)	    security.checkSetFactory();	    	if (currGroup != null)	    throw new ActivationException("group already exists");		if (canCreate == false)	    throw new ActivationException("group deactivated and " +					  "cannot be recreated");	try {	    // load group's class	    String groupClassName = desc.getClassName();	    /*	     * Fix for 4252236: resolution of the default	     * activation group implementation name should be	     * delayed until now.	     */	    if (groupClassName == null) {		groupClassName = sun.rmi.server.ActivationGroupImpl.class.getName();	    }			    final String className = groupClassName;			    /*	     * Fix for 4170955: Because the default group	     * implementation is a sun.* class, the group class	     * needs to be loaded in a privileged block of code.  	     */	    Class cl;	    try {		cl = (Class) java.security.AccessController.		    doPrivileged(new PrivilegedExceptionAction() {			public Object run() throws ClassNotFoundException, 			    MalformedURLException 			    {				return RMIClassLoader.				    loadClass(desc.getLocation(), className);			    }		    });	    } catch (PrivilegedActionException pae) {		throw new ActivationException("Could not load default group " + 					      "implementation class", 					      pae.getException());	    }			    // create group	    Constructor constructor = cl.getConstructor(groupConstrParams);	    Object[] params = new Object[] { id, desc.getData() };	    Object obj = constructor.newInstance(params);	    if (obj instanceof ActivationGroup) {		ActivationGroup newGroup = (ActivationGroup) obj;		currSystem = id.getSystem();		newGroup.incarnation = incarnation;		newGroup.monitor =		    currSystem.activeGroup(id, newGroup, incarnation);		currGroup = newGroup;		currGroupID = id;		canCreate = false;	    } else {		throw new ActivationException("group not correct class: " +					      obj.getClass().getName());	    }	} catch (java.lang.reflect.InvocationTargetException e) {		e.getTargetException().printStackTrace();		throw new ActivationException("exception in group constructor",					      e.getTargetException());			} catch (ActivationException e) {	    throw e;	    	} catch (Exception e) {	    throw new ActivationException("exception creating group", e);	}		return currGroup;    }    /**     * Returns the current activation group's identifier.  Returns null     * if no group is currently active for this VM.     * @return the activation group's identifier     * @since 1.2      */    public static synchronized ActivationGroupID currentGroupID() {	return currGroupID;    }    /**     * Returns the activation group identifier for the VM.  If an     * activation group does not exist for this VM, a default     * activation group is created. A group can be created only once,     * so if a group has already become active and deactivated.     *     * @return the activation group identifier     * @exception ActivationException if error occurs during group     * creation, if security manager is not set, or if the group     * has already been created and deactivated.     */    static synchronized ActivationGroupID internalCurrentGroupID()	throws ActivationException    {	if (currGroupID == null)	    throw new ActivationException("nonexistent group");	return currGroupID;    }    /**     * Set the activation system for the VM.  The activation system can     * only be set it if no group is currently active. If the activation     * system is not set via this call, then the <code>getSystem</code>     * method attempts to obtain a reference to the     * <code>ActivationSystem</code> by looking up the name     * "java.rmi.activation.ActivationSystem" in the Activator's     * registry. By default, the port number used to look up the     * activation system is defined by     * <code>ActivationSystem.SYSTEM_PORT</code>. This port can be overridden     * by setting the property <code>java.rmi.activation.port</code>.     *     * <p>If there is a security manager, this method first     * calls the security manager's <code>checkSetFactory</code> method.     * This could result in a SecurityException.     *     * @param system remote reference to the <code>ActivationSystem</code>     * @exception ActivationException if activation system is already set     * @exception SecurityException if permission to set the activation system is denied.     * (Note: The default implementation of the security manager      * <code>checkSetFactory</code>     * method requires the RuntimePermission "setFactory")     * @see #getSystem     * @see SecurityManager#checkSetFactory     * @since 1.2     */    public static synchronized void setSystem(ActivationSystem system)	throws ActivationException    {	SecurityManager security = System.getSecurityManager();	if (security != null)	    security.checkSetFactory();		if (currSystem != null)	    throw new ActivationException("activation system already set");	currSystem = system;    }    /**     * Returns the activation system for the VM. The activation system     * may be set by the <code>setSystem</code> method. If the     * activation system is not set via the <code>setSystem</code>     * method, then the <code>getSystem</code> method attempts to     * obtain a reference to the <code>ActivationSystem</code> by     * looking up the name "java.rmi.activation.ActivationSystem" in     * the Activator's registry. By default, the port number used to     * look up the activation system is defined by     * <code>ActivationSystem.SYSTEM_PORT</code>. This port can be     * overridden by setting the property     * <code>java.rmi.activation.port</code>.     *     * @return the activation system for the VM/group     * @exception ActivationException if activation system cannot be     *  obtained or is not bound     * (means that it is not running)     * @see #setSystem     * @since 1.2     */    public static synchronized ActivationSystem getSystem()	throws ActivationException    {	if (currSystem == null) {	    try {		int port;		port = ((Integer)java.security.AccessController.doPrivileged(                    new GetIntegerAction("java.rmi.activation.port",					 ActivationSystem.SYSTEM_PORT))).intValue();		currSystem = (ActivationSystem)		    Naming.lookup("//:" + port +				  "/java.rmi.activation.ActivationSystem");	    } catch (Exception e) {		throw new ActivationException(		    "unable to obtain ActivationSystem", e);	    }	}	return currSystem;    }    /**     * This protected method is necessary for subclasses to     * make the <code>activeObject</code> callback to the group's     * monitor. The call is simply forwarded to the group's     * <code>ActivationMonitor</code>.     *     * @param id the object's identifier     * @param mobj a marshalled object containing the remote object's stub     * @exception UnknownObjectException if object is not registered     * @exception RemoteException if call informing monitor fails     * @exception ActivationException if an activation error occurs     * @since 1.2     */    protected void activeObject(ActivationID id, MarshalledObject mobj)	throws ActivationException, UnknownObjectException, RemoteException    {	getMonitor().activeObject(id, mobj);    }    /**     * This protected method is necessary for subclasses to     * make the <code>inactiveGroup</code> callback to the group's     * monitor. The call is simply forwarded to the group's     * <code>ActivationMonitor</code>. Also, the current group     * for the VM is set to null.     *     * @exception UnknownGroupException if group is not registered     * @exception RemoteException if call informing monitor fails     * @since 1.2     */    protected void inactiveGroup()	throws UnknownGroupException, RemoteException    {	try {	    getMonitor().inactiveGroup(groupID, incarnation);	} finally {	    destroyGroup();	}    }    /**     * Returns the monitor for the activation group.     */    private ActivationMonitor getMonitor() throws RemoteException {	synchronized (ActivationGroup.class) {	    if (monitor != null) {		return monitor;	    }	}	throw new RemoteException("monitor not received");    }        /**     * Destroys the current group.     */    private static synchronized void destroyGroup() {	currGroup = null;	currGroupID = null;	// NOTE: don't set currSystem to null since it may be needed    }    /**     * Returns the current group for the VM.     * @exception ActivationException if current group is null (not active)     */    static synchronized ActivationGroup currentGroup()	throws ActivationException    {	if (currGroup == null) {	    throw new ActivationException("group is not active");	}	return currGroup;    }    }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区三区综合| 亚洲一区免费观看| 国产麻豆精品久久一二三| 欧美成人性战久久| 国产成人精品www牛牛影视| 国产精品免费久久久久| 成人av在线一区二区三区| 日本一区二区不卡视频| 91小视频在线| 日韩国产精品大片| 欧美成人性战久久| 成人永久免费视频| 一区二区久久久久久| 在线成人av影院| 久久精品国产77777蜜臀| 国产日本欧美一区二区| 91免费国产视频网站| 日韩高清在线电影| 国产日韩欧美一区二区三区综合| 97久久人人超碰| 日韩国产欧美在线视频| 欧美精选一区二区| 国产伦精品一区二区三区免费 | 国产精品国产自产拍在线| 91丨九色丨黑人外教| 日韩影院免费视频| 国产日韩精品一区二区浪潮av| 99久久久国产精品| 老司机午夜精品| 亚洲免费av观看| 欧美不卡在线视频| 色噜噜狠狠一区二区三区果冻| 免费在线观看视频一区| 中文字幕 久热精品 视频在线| 欧美日韩国产首页| 成人听书哪个软件好| 日韩有码一区二区三区| 中文字幕视频一区| 久久一区二区视频| 欧美精品一二三| 成人avav在线| 国产在线观看免费一区| 亚洲成人激情社区| 亚洲欧洲中文日韩久久av乱码| 日韩欧美国产三级| 91美女精品福利| 国产一区二区伦理| 亚洲1区2区3区视频| 亚洲色图另类专区| 久久精品综合网| 欧美电影免费观看高清完整版在线观看 | 一片黄亚洲嫩模| 中文字幕欧美激情| 日韩精品一区二区三区在线播放| 欧美在线你懂的| 99精品欧美一区| 国产不卡一区视频| 日本不卡在线视频| 亚洲国产成人91porn| 亚洲欧美中日韩| 精品国产91亚洲一区二区三区婷婷| 欧美色爱综合网| 91在线视频18| av高清不卡在线| 东方欧美亚洲色图在线| 国产一区亚洲一区| 久久99国产精品久久99果冻传媒| 日韩国产在线观看一区| 亚洲一二三四区| 亚洲美女视频一区| 亚洲欧洲av在线| 国产精品免费久久| 中文字幕在线不卡| 亚洲欧洲av另类| 亚洲人成网站精品片在线观看| 中文字幕av一区二区三区高| 欧美国产日韩a欧美在线观看| 精品成人一区二区三区| 久久夜色精品一区| 国产亚洲精品资源在线26u| 久久久久久久久久久黄色| 精品欧美乱码久久久久久1区2区| 欧美二区在线观看| 91麻豆精品91久久久久久清纯| 欧美久久久久免费| 欧美一区二区成人6969| 精品国产一区二区三区av性色| 日韩一区和二区| 精品国产一区二区在线观看| 国产日产欧美一区| 一区在线中文字幕| 亚洲午夜久久久久久久久久久| 亚洲成av人综合在线观看| 天天操天天干天天综合网| 日韩国产高清影视| 国产一区欧美日韩| www.欧美色图| 欧美日韩另类一区| 日韩三级电影网址| 久久伊人中文字幕| 亚洲日本成人在线观看| 亚洲第一在线综合网站| 久久电影网电视剧免费观看| 粉嫩欧美一区二区三区高清影视| av资源网一区| 欧美精选午夜久久久乱码6080| 欧美成人一级视频| 中文字幕一区二区三区色视频| 亚洲国产精品麻豆| 激情综合色综合久久综合| 成人网在线播放| 欧美日韩卡一卡二| www国产精品av| 亚洲一区二区三区小说| 久久激五月天综合精品| 93久久精品日日躁夜夜躁欧美| 91精品国产综合久久香蕉的特点 | 国产欧美精品一区二区三区四区| 亚洲天堂成人在线观看| 奇米888四色在线精品| 成人av动漫在线| 日韩欧美成人一区| 中文字幕字幕中文在线中不卡视频| 日本在线不卡一区| 91香蕉视频污| 欧美精品一区二区三区久久久| 亚洲另类在线制服丝袜| 日本欧美一区二区三区| 成人免费黄色大片| 欧美精品久久天天躁| 国产精品国模大尺度视频| 老司机精品视频一区二区三区| 色94色欧美sute亚洲线路一ni | 日韩精品一区二区三区在线播放| 亚洲三级在线免费| 国内精品免费在线观看| 欧美日韩五月天| 中文字幕一区二区三区四区不卡| 免费精品视频在线| 色噜噜狠狠成人中文综合| 久久这里都是精品| 秋霞电影网一区二区| 色94色欧美sute亚洲13| 国产亚洲短视频| 久久国产综合精品| 欧美日韩专区在线| 亚洲三级视频在线观看| 懂色av一区二区三区免费看| 日韩欧美一区二区免费| 午夜精品福利一区二区三区蜜桃| 91色视频在线| 中文字幕第一区综合| 国产精品一区专区| 精品国产乱码久久久久久免费 | 亚洲图片欧美综合| 99视频精品在线| 欧美极品美女视频| 国产伦精品一区二区三区免费 | 久久久综合视频| 乱一区二区av| 欧美人妇做爰xxxⅹ性高电影| 亚洲激情自拍偷拍| 91在线码无精品| 亚洲丝袜美腿综合| a美女胸又www黄视频久久| 中文幕一区二区三区久久蜜桃| 国产乱人伦偷精品视频免下载| 日韩一级黄色大片| 精品在线免费视频| 久久综合网色—综合色88| 久久精品国产77777蜜臀| 日韩欧美一二区| 国产在线视频一区二区| 精品国产青草久久久久福利| 久久99精品久久久久久动态图 | 国产日韩精品一区二区三区| 国产盗摄一区二区| 中文幕一区二区三区久久蜜桃| 成人美女视频在线观看| 国产精品免费观看视频| 99久精品国产| 亚洲精品成人少妇| 欧美高清你懂得| 久久精品国产一区二区三区免费看| 日韩欧美国产综合一区| 国产精品一区免费在线观看| 中文av字幕一区| 91黄色免费看| 欧美96一区二区免费视频| 精品区一区二区| 成人午夜av电影| 亚洲国产精品综合小说图片区| 欧美精品一二三| 国产麻豆日韩欧美久久| 国产精品盗摄一区二区三区| 日本韩国一区二区三区视频| 日韩综合在线视频| 久久久久国色av免费看影院| 91麻豆成人久久精品二区三区| 五月综合激情婷婷六月色窝|