KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ist > coach > coachEmfCommon > ManagedObjectValueTypeFactory


1 package ist.coach.coachEmfCommon;
2
3 public class ManagedObjectValueTypeFactory
4 implements org.omg.CORBA.portable.ValueFactory JavaDoc {
5
6    // ==================================================================
7
//
8
// Internal state.
9
//
10
// ==================================================================
11

12     // ==================================================================
13
//
14
// Constructor.
15
//
16
// ==================================================================
17

18     /**
19      ** The default constructor.
20      **/

21     public
22     ManagedObjectValueTypeFactory() {}
23
24     // ==================================================================
25
//
26
// Internal methods.
27
//
28
// ==================================================================
29

30     // ==================================================================
31
//
32
// Public methods.
33
// ==================================================================
34

35         // ==================================================================
36
//
37
// Methods for the org.omg.CORBA.portable.ValueFactory interface.
38
//
39
// ==================================================================
40

41     /**
42      ** Read a Components::ConnectionDescription from a CORBA input stream.
43      **
44      ** @param in The CORBA input stream.
45      **
46      ** @return The valuetype.
47      **/

48     public java.io.Serializable JavaDoc
49     read_value(org.omg.CORBA_2_3.portable.InputStream JavaDoc in)
50     {
51         java.io.Serializable JavaDoc v = new ManagedObjectValueTypeImpl();
52         return in.read_value(v);
53     }
54
55    
56     // ==================================================================
57
//
58
// Public static methods.
59
//
60
// ==================================================================
61

62     /**
63      * Register the value type factory on the ORB.
64      */

65     public static void
66
67     register() {
68    
69         org.objectweb.ccm.Components.Runtime.register_value_factory(
70            intt.itu.itut_x780.ManagedObjectValueTypeHelper.id(),
71           new ManagedObjectValueTypeFactory());
72     }
73 }
74
75
Popular Tags