11.3.6 <interface_name>POA.java

<interface_name>POA.javaファイルはインタフェースのサーバ側のスケルトンです。このファイルはinパラメタをアンマーシャルしてからオブジェクトインプリメンテーションに渡し,リターン値と(あれば)outパラメタをマーシャルし直します。

コードサンプル11-6 ExamplePOA.javaファイル(Java)

public abstract class examplePOA extends
                  org.omg.PortableServer.Servant implements
   org.omg.CORBA.portable.InvokeHandler, exampleOperations {
  public example _this (){
  . . .
  }
  public example _this (org.omg.CORBA.ORB orb){
  . . .
  }
  public java.lang.String[ ] _all_interfaces (
                      final org.omg.PortableServer.POA poa,
     . . .
  }
  public org.omg.CORBA.portable.OutputStream _invoke (
       java.lang.String opName,
       org.omg.CORBA.portable.InputStream _input,
       org.omg.CORBA.portable.ResponseHandler handler){
     . . .
  }
  public static org.omg.CORBA.portable.OutputStream _invoke (
     exampleOperations _self,
     int _method_id, org.omg.CORBA.portable.InputStream _input,
     org.omg.CORBA.portable.ResponseHandler _handler){
     . . .
  }
}