usermanager.java~3~

来自「用j2ee开发的一个旅店管理系统」· JAVA~3~ 代码 · 共 56 行

JAVA~3~
56
字号
package com.xc.hotelmanager.user.control.proxy;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */import java.util.*;import com.xc.hotelmanager.user.model.*;import com.xc.hotelmanager.user.control.session.*;import com.xc.hotelmanager.user.exception.UserManagerException;public class UserManager {  static UserManager instance = null;    private SB_usermanager manager=null;    private UserManager(){        try{            manager = com.xc.hotelmanager.user.control.EjbGetter1.                      getSB_UserManagerHome().create();        }        catch(Exception ex){        }    }    public static  UserManager getInstance(){        if (instance == null) {            instance = new UserManager();        }        return instance;    }    public static void main(String[] args) {          try{              UserManager m=UserManager.getInstance();      }      catch(Exception ex){          System.out.println(ex.getMessage());      }      }   public String Login(String uid, String upwd)throws UserManagerException{     try{           return manager.Login(uid,upwd);      }      catch(java.rmi.RemoteException rex){          throw new UserManagerException(rex.getMessage());      }   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?