001 /***** Copyright (c) 1999 Object Management Group. Unlimited rights to 002 duplicate and use this code are hereby granted provided that this 003 copyright notice is included. 004 *****/ 005 006 package org.omg.CORBA; 007 008 final public class ObjectHolder implements org.omg.CORBA.portable.Streamable { 009 010 public org.omg.CORBA.Object value; 011 012 public ObjectHolder() { 013 } 014 015 public ObjectHolder(org.omg.CORBA.Object initial) { 016 value = initial; 017 } 018 019 public void _read(org.omg.CORBA.portable.InputStream is) { 020 value = is.read_Object(); 021 } 022 023 public void _write(org.omg.CORBA.portable.OutputStream os) { 024 os.write_Object(value); 025 } 026 027 public org.omg.CORBA.TypeCode _type() { 028 return org.omg.CORBA.ORB.init().get_primitive_tc(TCKind.tk_objref); 029 } 030 031 }