38 |
|
|
39 |
package gnu.CORBA.DynAn; |
package gnu.CORBA.DynAn; |
40 |
|
|
41 |
|
import gnu.CORBA.Minor; |
42 |
import gnu.CORBA.Unexpected; |
import gnu.CORBA.Unexpected; |
43 |
|
|
44 |
import org.omg.CORBA.Any; |
import org.omg.CORBA.Any; |
67 |
* |
* |
68 |
* @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) |
* @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) |
69 |
*/ |
*/ |
70 |
public class gnuDynValue extends abstractRecord implements DynValue, |
public class gnuDynValue extends RecordAny implements DynValue, |
71 |
Serializable |
Serializable |
72 |
{ |
{ |
73 |
/** |
/** |
244 |
/** |
/** |
245 |
* Create a new instance. |
* Create a new instance. |
246 |
*/ |
*/ |
247 |
protected abstractRecord newInstance(TypeCode oType, TypeCode aType, |
protected RecordAny newInstance(TypeCode oType, TypeCode aType, |
248 |
gnuDynAnyFactory aFactory, ORB anOrb |
gnuDynAnyFactory aFactory, ORB anOrb |
249 |
) |
) |
250 |
{ |
{ |
302 |
ValueFactory factory = |
ValueFactory factory = |
303 |
((org.omg.CORBA_2_3.ORB) orb).lookup_value_factory(official_type.id()); |
((org.omg.CORBA_2_3.ORB) orb).lookup_value_factory(official_type.id()); |
304 |
if (factory == null) |
if (factory == null) |
305 |
throw new MARSHAL("Factory for " + official_type.id() + |
{ |
306 |
" not registered." |
MARSHAL m = new MARSHAL("Factory for " + official_type.id() + |
307 |
); |
" not registered."); |
308 |
|
m.minor = Minor.Factory; |
309 |
|
throw m; |
310 |
|
} |
311 |
|
|
312 |
OutputStream out = orb.create_output_stream(); |
OutputStream out = orb.create_output_stream(); |
313 |
|
|