1 28 29 30 package org.objectweb.ccm.runtime; 31 32 import org.objectweb.corba.runtime.*; 33 34 37 abstract public class Session2ContextBase 38 extends org.omg.CORBA.LocalObject 39 implements org.omg.Components.Session2Context, java.io.Serializable 40 { 41 private org.omg.Components.CCM2Context _context; 43 protected ReceptacleSet _receptacles; 44 protected EmitterSet _emitters; 45 protected PublisherSet _publishers; 46 47 public 49 Session2ContextBase() 50 { 51 _context = null; 53 _receptacles = null; 54 _emitters = null; 55 _publishers = null; 56 } 57 58 protected 60 Session2ContextBase(org.omg.Components.CCM2Context ctx, 61 ReceptacleSet rset, 62 EmitterSet eset, 63 PublisherSet pset) 64 { 65 _context = ctx; 67 _receptacles = rset; 68 _emitters = eset; 69 _publishers = pset; 70 } 71 72 76 final public org.omg.Components.CCMHome 77 get_CCM_home() 78 { 79 return _context.get_CCM_home(); 80 } 81 82 86 final public org.omg.Components.HomeRegistrationLocal 87 get_home_registration() 88 { 89 return _context.get_home_registration(); 90 } 91 92 final public void 93 req_passivate() 94 throws org.omg.Components.IllegalState, 95 org.omg.Components.PolicyMismatch 96 { 97 _context.req_passivate(); 98 } 99 100 final public org.omg.Components.LocalEvents 101 get_events() 102 { 103 return _context.get_events(); 104 } 105 106 final public org.omg.Components.LocalReceptacles 107 get_receptacles() 108 { 109 return _context.get_receptacles(); 110 } 111 112 final public void 113 remove_component(org.omg.Components.CCMObject comp) 114 { 115 _context.remove_component(comp); 116 } 117 118 final public void 119 register_valuefactory(String typeid, org.omg.CORBA.portable.ValueFactory vfact) 120 { 121 _context.register_valuefactory(typeid, vfact); 122 } 123 124 final public org.omg.CORBA.Any 125 create_any() 126 { 127 return _context.create_any(); 128 } 129 130 134 final public org.omg.CORBA.Object 135 get_CCM_object() 136 throws org.omg.Components.IllegalState 137 { 138 return ((org.omg.Components.SessionContext)_context).get_CCM_object(); 139 } 140 141 145 final public byte[] 146 get_object_id() 147 throws org.omg.Components.IllegalState 148 { 149 return ((org.omg.Components.Session2Context)_context).get_object_id(); 150 } 151 152 final public org.omg.CORBA.Object 153 create_ref(String repid) 154 { 155 return ((org.omg.Components.Session2Context)_context).create_ref(repid); 156 } 157 158 final public org.omg.CORBA.Object 159 create_ref_with_id(byte[] id, String repid) 160 { 161 return ((org.omg.Components.Session2Context)_context).create_ref_with_id(id, repid); 162 } 163 164 final public byte[] 165 get_id_from_ref(org.omg.CORBA.Object ref) 166 throws org.omg.Components.BadComponentReference 167 { 168 return ((org.omg.Components.Session2Context)_context).get_id_from_ref(ref); 169 } 170 171 final public org.omg.CORBA.Object 172 create_with_new_target(String repid) 173 throws org.omg.Components.IllegalState 174 { 175 return ((org.omg.Components.Session2Context)_context).create_with_new_target(repid); 176 } 177 } 178 | Popular Tags |