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