?? userinfoimpl.java
字號:
package test;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
/**
*
* @author worldheart
*
*/
//如果是開發RMI-IIOP使能應用,則要使用javax.rmi.PortableRemoteObject
public class UserInfoImpl extends UnicastRemoteObject
implements IUserInfo {
private UserPassPojo upp;
//構建器必須拋出RemoteException
public UserInfoImpl(UserPassPojo upp) throws RemoteException {
this.upp = upp;
}
//業務方法也必須拋出RemoteException
public String getUserInfo() throws RemoteException {
System.out.println("客戶調用到來");
return this.upp.toString();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -