calpoatie.java
来自「CORBA实例」· Java 代码 · 共 59 行
JAVA
59 行
package corba.calculator;
/**
* <ul>
* <li> <b>IDL Source</b> "J:/java/corba/src/corba/add.idl"
* <li> <b>IDL Name</b> ::calculator::cal
* <li> <b>Repository Id</b> IDL:calculator/cal:1.0
* </ul>
* <b>IDL definition:</b>
* <pre>
* interface cal {
...
};
* </pre>
*/
public class calPOATie extends calPOA {
private corba.calculator.calOperations _delegate;
private org.omg.PortableServer.POA _poa;
public calPOATie (final corba.calculator.calOperations _delegate) {
this._delegate = _delegate;
}
public calPOATie (final corba.calculator.calOperations _delegate,
final org.omg.PortableServer.POA _poa) {
this._delegate = _delegate;
this._poa = _poa;
}
public corba.calculator.calOperations _delegate () {
return this._delegate;
}
public void _delegate (final corba.calculator.calOperations the_delegate) {
this._delegate = the_delegate;
}
public org.omg.PortableServer.POA _default_POA () {
if (_poa != null) {
return _poa;
}
else {
return super._default_POA();
}
}
/**
* <pre>
* long add (in long x, in long y);
* </pre>
*/
public int add (int x,
int y) {
return this._delegate.add(x, y);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?