Borland(R) Enterprise Server VisiBroker(R) デベロッパーズガイド

[目次][索引][前へ][次へ]

11.3.4 <interface_name>Holder.java

idl2javaコンパイラによって,ユーザ定義型ごとにホルダークラスが生成されます。これは,outパラメタとinoutパラメタとして渡される場合,<interface_name>インタフェースをサポートするオブジェクトをラッピングするオブジェクトのクラスを提供します。

コードサンプル11-4 ホルダークラスの例(Java)
 
public final class exampleHolder implements 
                         org.omg.CORBA.portable.Streamable {
   public foo.example value;
   public exampleHolder (){
   }
   public exampleHolder (final foo.example _vis_value){
      . . .
   }
   public void _read (
            final org.omg.CORBA.portable.InputStream input){
      . . .
   }
   public void _write (
          final org.omg.CORBA.portable.OutputStream output){
      . . .
   }
   public org.omg.CORBA.TypeCode _type (){
      . . .
   }
}