accountdefaultfactory.java

来自「利用CORBA的值类型实现的一个分布式程序」· Java 代码 · 共 39 行

JAVA
39
字号

package Bank;

/**
 * <ul>
 * <li> <b>IDL Source</b>    "Bank.idl"
 * <li> <b>IDL Name</b>      ::Bank::Account
 * <li> <b>Repository Id</b> IDL:Bank/Account:1.0
 * </ul>
 * <b>IDL definition:</b>
 * <pre>
 * valuetype Account : Bank.AbstractAccount {
  ...
};
 * </pre>
 */
public class AccountDefaultFactory implements Bank.AccountValueFactory {
  public java.io.Serializable read_value (org.omg.CORBA_2_3.portable.InputStream is) {
    // INSTANTIATE IMPLEMENTATION CLASS ON THE LINE BELOW:
    java.io.Serializable val = null;
    // REMOVE THE LINE BELOW AFTER FINISHING IMPLEMENTATION
    throw new org.omg.CORBA.NO_IMPLEMENT();
    return is.read_value(val);
  }

  /**
   * <pre>
   *   valuetype Account : Bank.AbstractAccount {
    ...
  };
   * </pre>
   */
  public Bank.Account open (float init) {
    // IMPLEMENT METHOD AND REMOVE THE LINE BELOW:
    throw new org.omg.CORBA.NO_IMPLEMENT();
  }

}

⌨️ 快捷键说明

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