001 /***** Copyright (c) 1999-2000 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 /***** This class is specifed by the mapping as abstract. 007 A "dummy" implementation is provided so that the "official" org.omg.* 008 packages may be compiled. 009 010 ORB-vendors shall provide a complete implementation of the class 011 by extending it with a vendor-specific class which 012 provides "real" implementations for all the methods. E.g. 013 014 package com.acme_orb_vendor.CORBA; 015 public class ORB extends org.omg.CORBA { ... } 016 017 In order to be conformant the class shall support the signatures 018 specified here, but will have an orb-specific implementation. 019 020 Implementations of the static init methods in this class are also required. 021 022 The class may support additional vendor specific functionality. 023 *****/ 024 025 package org.omg.CORBA; 026 027 abstract public class ORB { 028 public String id() 029 { 030 throw new org.omg.CORBA.NO_IMPLEMENT(); 031 } 032 033 abstract public org.omg.CORBA.Object string_to_object(String str); 034 035 abstract public String object_to_string(org.omg.CORBA.Object obj); 036 037 // Dynamic Invocation related operations 038 039 abstract public NVList create_list(int count); 040 041 /** 042 * @deprecated by CORBA 2.3 043 */ 044 public NVList create_operation_list(org.omg.CORBA.Object oper) { 045 throw new org.omg.CORBA.NO_IMPLEMENT(); 046 } 047 048 abstract public NamedValue create_named_value(String s, Any any, int flags); 049 050 abstract public ExceptionList create_exception_list(); 051 052 abstract public ContextList create_context_list(); 053 054 abstract public Context get_default_context(); 055 056 abstract public Environment create_environment(); 057 058 abstract public void send_multiple_requests_oneway(Request[] req); 059 060 abstract public void send_multiple_requests_deferred(Request[] req); 061 062 abstract public boolean poll_next_response(); 063 064 abstract public Request get_next_response() throws WrongTransaction; 065 066 public boolean get_service_information(short service_type, 067 ServiceInformationHolder service_info) { 068 throw new org.omg.CORBA.NO_IMPLEMENT(); 069 } 070 071 abstract public String[] list_initial_services(); 072 073 public void register_initial_reference( 074 String object_name, 075 org.omg.CORBA.Object object 076 ) throws org.omg.CORBA.ORBPackage.InvalidName 077 { 078 throw new org.omg.CORBA.NO_IMPLEMENT() ; 079 } 080 081 // Initial reference operation 082 083 abstract public org.omg.CORBA.Object resolve_initial_references( 084 String object_name) 085 throws org.omg.CORBA.ORBPackage.InvalidName; 086 087 // typecode creation 088 089 abstract public TypeCode create_struct_tc(String id, String name, 090 StructMember[] members); 091 092 abstract public TypeCode create_union_tc(String id, String name, 093 TypeCode discriminator_type, 094 UnionMember[] members); 095 096 abstract public TypeCode create_enum_tc(String id, String name, 097 String[] members); 098 099 abstract public TypeCode create_alias_tc(String id, String name, 100 TypeCode original_type); 101 102 abstract public TypeCode create_exception_tc(String id, String name, 103 StructMember[] members); 104 105 abstract public TypeCode create_interface_tc(String id, String name); 106 107 abstract public TypeCode create_string_tc(int bound); 108 109 abstract public TypeCode create_wstring_tc(int bound); 110 111 public org.omg.CORBA.TypeCode create_fixed_tc(short digits, short scale) { 112 throw new org.omg.CORBA.NO_IMPLEMENT(); 113 } 114 115 abstract public TypeCode create_sequence_tc(int bound, 116 TypeCode element_type); 117 118 /** 119 * @deprecated by CORBA 2.3 120 */ 121 abstract public TypeCode create_recursive_sequence_tc(int bound, int offset); 122 123 abstract public TypeCode create_array_tc(int length, TypeCode element_type); 124 125 public org.omg.CORBA.TypeCode create_value_tc(String id, 126 String name, 127 short type_modifier, 128 TypeCode concrete_base, 129 ValueMember[] members) { 130 throw new org.omg.CORBA.NO_IMPLEMENT(); 131 } 132 133 public org.omg.CORBA.TypeCode create_value_box_tc(String id, 134 String name, 135 TypeCode boxed_type) { 136 throw new org.omg.CORBA.NO_IMPLEMENT(); 137 } 138 139 public org.omg.CORBA.TypeCode create_native_tc(String id, 140 String name) { 141 throw new org.omg.CORBA.NO_IMPLEMENT(); 142 } 143 144 public org.omg.CORBA.TypeCode create_recursive_tc(String id) { 145 throw new org.omg.CORBA.NO_IMPLEMENT(); 146 } 147 148 public org.omg.CORBA.TypeCode create_abstract_interface_tc( 149 String id, 150 String name) { 151 throw new org.omg.CORBA.NO_IMPLEMENT(); 152 } 153 154 155 public org.omg.CORBA.TypeCode create_local_interface_tc( 156 String id, 157 String name) { 158 throw new org.omg.CORBA.NO_IMPLEMENT(); 159 } 160 161 /** 162 * @deprecated Deprecated by CORBA 2.3 163 */ 164 public org.omg.CORBA.Current get_current() { 165 throw new org.omg.CORBA.NO_IMPLEMENT(); 166 } 167 168 /** 169 * @deprecated Deprecated by Portable Object Adapter. 170 * see OMG document orbos/98-01-06 for details. 171 */ 172 public void connect(org.omg.CORBA.Object obj) { 173 throw new org.omg.CORBA.NO_IMPLEMENT(); 174 } 175 176 /** 177 * @deprecated Deprecated by Portable Object Adapter. 178 * see OMG document orbos/98-01-06 for details. 179 */ 180 public void disconnect(org.omg.CORBA.Object obj) { 181 throw new org.omg.CORBA.NO_IMPLEMENT(); 182 } 183 184 // Thread related operations 185 186 public boolean work_pending() { 187 throw new org.omg.CORBA.NO_IMPLEMENT(); 188 } 189 190 public void perform_work() { 191 throw new org.omg.CORBA.NO_IMPLEMENT(); 192 } 193 194 public void run() { 195 throw new org.omg.CORBA.NO_IMPLEMENT(); 196 } 197 198 public void shutdown(boolean wait_for_completion) { 199 throw new org.omg.CORBA.NO_IMPLEMENT(); 200 } 201 202 // policy related operations 203 204 public org.omg.CORBA.Policy create_policy(int type, org.omg.CORBA.Any val) 205 throws org.omg.CORBA.PolicyError { 206 throw new org.omg.CORBA.NO_IMPLEMENT(); 207 } 208 209 // Additional methods for IDL/Java mapping 210 211 abstract public TypeCode get_primitive_tc(TCKind tcKind); 212 213 abstract public Any create_any(); 214 215 abstract public org.omg.CORBA.portable.OutputStream create_output_stream(); 216 217 // Additional static methods for ORB initialization 218 219 public static ORB init(String[] args, java.util.Properties props) { 220 /* VENDOR MUST SUPPLY IMPLEMENTATION */ 221 throw new org.omg.CORBA.NO_IMPLEMENT(); 222 } 223 224 public static ORB init(java.applet.Applet app, java.util.Properties props) { 225 /* VENDOR MUST SUPPLY IMPLEMENTATION */ 226 throw new org.omg.CORBA.NO_IMPLEMENT(); 227 } 228 229 public static ORB init() { 230 /* VENDOR MUST SUPPLY IMPLEMENTATION */ 231 throw new org.omg.CORBA.NO_IMPLEMENT(); 232 } 233 234 abstract protected void set_parameters(String[] args, 235 java.util.Properties props); 236 237 abstract protected void set_parameters(java.applet.Applet app, 238 java.util.Properties props); 239 240 // always return a ValueDef or throw BAD_PARAM if not repid of a value 241 public org.omg.CORBA.Object get_value_def(String repid) { 242 throw new org.omg.CORBA.NO_IMPLEMENT(); 243 } 244 245 public org.omg.CORBA.portable.ValueFactory register_value_factory( 246 String id, org.omg.CORBA.portable.ValueFactory factory) { 247 throw new org.omg.CORBA.NO_IMPLEMENT(); 248 } 249 250 public void unregister_value_factory(String id) { 251 throw new org.omg.CORBA.NO_IMPLEMENT(); 252 } 253 254 public org.omg.CORBA.portable.ValueFactory lookup_value_factory(String id){ 255 throw new org.omg.CORBA.NO_IMPLEMENT(); 256 } 257 258 public void set_delegate(java.lang.Object wrapper) { 259 throw new org.omg.CORBA.NO_IMPLEMENT(); 260 } 261 } 262