?? dynamicremotestub.java
字號:
/*
* Copyright 1999 by dreamBean Software,
* All rights reserved.
*/
package smartproxy.proxies;
import java.io.ObjectStreamException;
import java.rmi.MarshalledObject;
import java.rmi.RemoteException;
import java.rmi.server.RemoteStub;
import java.rmi.server.RemoteRef;
import smartproxy.dynamic.Handler;
/**
* Generic remote stub for dynamic proxies. The RMI system uses
* this during the export process, but when it is sent to the clients
* it is replaced with a dynamic proxy that wraps it.
*
* @author Rickard 謆erg (rickard@dreambean.com)
*/
public class DynamicRemoteStub
extends RemoteStub
{
// Constructors --------------------------------------------------
Class cl;
public DynamicRemoteStub(RemoteRef ref)
{
super(ref);
cl = Handler.getCurrentClass();
}
// Serializable implementation -----------------------------------
Object readResolve() throws ObjectStreamException
{
if (cl == null)
return this;
else
{
Object obj = smartproxy.proxies.DynamicStubHandler.resolve(this, cl);
cl = null;
return obj;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -