src/share/classes/com/sun/corba/se/impl/orb/ORBSingleton.java

Wed, 27 Apr 2016 01:21:28 +0800

author
aoqi
date
Wed, 27 Apr 2016 01:21:28 +0800
changeset 0
7ef37b2cdcad
child 748
6845b95cba6b
permissions
-rw-r--r--

Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/corba/
changeset: 765:f46df0af2ca8
tag: jdk8u25-b17

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 *
aoqi@0 5 * This code is free software; you can redistribute it and/or modify it
aoqi@0 6 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 * published by the Free Software Foundation. Oracle designates this
aoqi@0 8 * particular file as subject to the "Classpath" exception as provided
aoqi@0 9 * by Oracle in the LICENSE file that accompanied this code.
aoqi@0 10 *
aoqi@0 11 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 14 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 15 * accompanied this code).
aoqi@0 16 *
aoqi@0 17 * You should have received a copy of the GNU General Public License version
aoqi@0 18 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 20 *
aoqi@0 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 22 * or visit www.oracle.com if you need additional information or have any
aoqi@0 23 * questions.
aoqi@0 24 */
aoqi@0 25 /*
aoqi@0 26 * Licensed Materials - Property of IBM
aoqi@0 27 * RMI-IIOP v1.0
aoqi@0 28 * Copyright IBM Corp. 1998 1999 All Rights Reserved
aoqi@0 29 *
aoqi@0 30 */
aoqi@0 31
aoqi@0 32 package com.sun.corba.se.impl.orb;
aoqi@0 33
aoqi@0 34 import java.util.Collection;
aoqi@0 35 import java.util.Properties;
aoqi@0 36 import java.util.Hashtable;
aoqi@0 37
aoqi@0 38 import java.applet.Applet;
aoqi@0 39
aoqi@0 40 import java.net.URL;
aoqi@0 41
aoqi@0 42 import java.io.IOException ;
aoqi@0 43
aoqi@0 44 import java.util.logging.Logger ;
aoqi@0 45
aoqi@0 46 import org.omg.CORBA.Context;
aoqi@0 47 import org.omg.CORBA.ContextList;
aoqi@0 48 import org.omg.CORBA.Environment;
aoqi@0 49 import org.omg.CORBA.ExceptionList;
aoqi@0 50 import org.omg.CORBA.ORBPackage.InvalidName;
aoqi@0 51 import org.omg.CORBA.NVList;
aoqi@0 52 import org.omg.CORBA.TCKind;
aoqi@0 53 import org.omg.CORBA.NamedValue;
aoqi@0 54 import org.omg.CORBA.NO_IMPLEMENT;
aoqi@0 55 import org.omg.CORBA.Object;
aoqi@0 56 import org.omg.CORBA.Request;
aoqi@0 57 import org.omg.CORBA.TypeCode;
aoqi@0 58 import org.omg.CORBA.Any;
aoqi@0 59 import org.omg.CORBA.StructMember;
aoqi@0 60 import org.omg.CORBA.UnionMember;
aoqi@0 61 import org.omg.CORBA.ValueMember;
aoqi@0 62 import org.omg.CORBA.Policy;
aoqi@0 63 import org.omg.CORBA.PolicyError;
aoqi@0 64
aoqi@0 65 import org.omg.CORBA.portable.OutputStream;
aoqi@0 66 import org.omg.CORBA.portable.RemarshalException;
aoqi@0 67
aoqi@0 68 import com.sun.corba.se.pept.protocol.ClientInvocationInfo ;
aoqi@0 69 import com.sun.corba.se.pept.transport.ContactInfo;
aoqi@0 70 import com.sun.corba.se.pept.transport.ConnectionCache;
aoqi@0 71 import com.sun.corba.se.pept.transport.Selector ;
aoqi@0 72 import com.sun.corba.se.pept.transport.TransportManager;
aoqi@0 73
aoqi@0 74 import com.sun.corba.se.spi.legacy.connection.ORBSocketFactory;
aoqi@0 75 import com.sun.corba.se.spi.orb.ORBData;
aoqi@0 76 import com.sun.corba.se.spi.orb.Operation;
aoqi@0 77 import com.sun.corba.se.spi.orb.ORB;
aoqi@0 78 import com.sun.corba.se.spi.orb.ORBVersion;
aoqi@0 79 import com.sun.corba.se.spi.orb.ORBVersionFactory;
aoqi@0 80 import com.sun.corba.se.spi.oa.OAInvocationInfo;
aoqi@0 81 import com.sun.corba.se.spi.oa.ObjectAdapter;
aoqi@0 82 import com.sun.corba.se.spi.protocol.CorbaMessageMediator;
aoqi@0 83 import com.sun.corba.se.spi.protocol.ClientDelegateFactory;
aoqi@0 84 import com.sun.corba.se.spi.protocol.RequestDispatcherRegistry;
aoqi@0 85 import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher;
aoqi@0 86 import com.sun.corba.se.spi.protocol.PIHandler;
aoqi@0 87 import com.sun.corba.se.spi.resolver.Resolver;
aoqi@0 88 import com.sun.corba.se.spi.resolver.LocalResolver;
aoqi@0 89 import com.sun.corba.se.spi.ior.IOR;
aoqi@0 90 import com.sun.corba.se.spi.ior.IdentifiableFactoryFinder;
aoqi@0 91 import com.sun.corba.se.spi.ior.TaggedComponentFactoryFinder;
aoqi@0 92 import com.sun.corba.se.spi.ior.ObjectKey;
aoqi@0 93 import com.sun.corba.se.spi.ior.ObjectKeyFactory;
aoqi@0 94 import com.sun.corba.se.spi.ior.iiop.GIOPVersion;
aoqi@0 95 import com.sun.corba.se.pept.transport.ByteBufferPool ;
aoqi@0 96 import com.sun.corba.se.spi.transport.CorbaContactInfoListFactory ;
aoqi@0 97 import com.sun.corba.se.spi.transport.CorbaTransportManager;
aoqi@0 98 import com.sun.corba.se.spi.legacy.connection.LegacyServerSocketManager;
aoqi@0 99 import com.sun.corba.se.spi.orbutil.closure.Closure;
aoqi@0 100 import com.sun.corba.se.spi.orbutil.threadpool.ThreadPoolManager;
aoqi@0 101 import com.sun.corba.se.spi.logging.LogWrapperFactory;
aoqi@0 102 import com.sun.corba.se.spi.logging.LogWrapperBase;
aoqi@0 103 import com.sun.corba.se.spi.copyobject.CopierManager;
aoqi@0 104 import com.sun.corba.se.spi.presentation.rmi.PresentationManager;
aoqi@0 105 import com.sun.corba.se.spi.presentation.rmi.PresentationDefaults;
aoqi@0 106
aoqi@0 107 import com.sun.corba.se.spi.servicecontext.ServiceContextRegistry;
aoqi@0 108 import com.sun.corba.se.spi.servicecontext.ServiceContexts;
aoqi@0 109
aoqi@0 110 import com.sun.corba.se.impl.corba.TypeCodeFactory;
aoqi@0 111 import com.sun.corba.se.impl.corba.TypeCodeImpl;
aoqi@0 112 import com.sun.corba.se.impl.corba.NVListImpl;
aoqi@0 113 import com.sun.corba.se.impl.corba.NamedValueImpl;
aoqi@0 114 import com.sun.corba.se.impl.corba.ExceptionListImpl;
aoqi@0 115 import com.sun.corba.se.impl.corba.ContextListImpl;
aoqi@0 116 import com.sun.corba.se.impl.corba.EnvironmentImpl;
aoqi@0 117 import com.sun.corba.se.impl.corba.AnyImpl;
aoqi@0 118 import com.sun.corba.se.impl.encoding.BufferManagerFactory;
aoqi@0 119 import com.sun.corba.se.impl.encoding.CodeSetComponentInfo;
aoqi@0 120 import com.sun.corba.se.impl.encoding.MarshalInputStream;
aoqi@0 121 import com.sun.corba.se.impl.encoding.EncapsOutputStream;
aoqi@0 122 import com.sun.corba.se.impl.encoding.MarshalOutputStream;
aoqi@0 123 import com.sun.corba.se.impl.oa.poa.BadServerIdHandler;
aoqi@0 124 import com.sun.corba.se.impl.orbutil.ORBConstants;
aoqi@0 125 import com.sun.corba.se.spi.legacy.connection.LegacyServerSocketEndPointInfo;
aoqi@0 126
aoqi@0 127 /*
aoqi@0 128 * The restricted singleton ORB implementation.
aoqi@0 129 *
aoqi@0 130 * For now, this class must implement just enough functionality to be
aoqi@0 131 * used as a factory for immutable TypeCode instances.
aoqi@0 132 *
aoqi@0 133 * See ORBImpl.java for the real ORB implementation.
aoqi@0 134 */
aoqi@0 135 public class ORBSingleton extends ORB
aoqi@0 136 {
aoqi@0 137 // This is used to support read_Object.
aoqi@0 138 private ORB fullORB;
aoqi@0 139 private static PresentationManager.StubFactoryFactory staticStubFactoryFactory =
aoqi@0 140 PresentationDefaults.getStaticStubFactoryFactory() ;
aoqi@0 141
aoqi@0 142 public void set_parameters( Properties props ) {
aoqi@0 143 }
aoqi@0 144
aoqi@0 145 protected void set_parameters(Applet app, Properties props) {
aoqi@0 146 }
aoqi@0 147
aoqi@0 148 protected void set_parameters (String params[], Properties props) {
aoqi@0 149 }
aoqi@0 150
aoqi@0 151 public OutputStream create_output_stream() {
aoqi@0 152 return sun.corba.OutputStreamFactory.newEncapsOutputStream(this);
aoqi@0 153 }
aoqi@0 154
aoqi@0 155 public TypeCode create_struct_tc(String id,
aoqi@0 156 String name,
aoqi@0 157 StructMember[] members)
aoqi@0 158 {
aoqi@0 159 return new TypeCodeImpl(this, TCKind._tk_struct, id, name, members);
aoqi@0 160 }
aoqi@0 161
aoqi@0 162 public TypeCode create_union_tc(String id,
aoqi@0 163 String name,
aoqi@0 164 TypeCode discriminator_type,
aoqi@0 165 UnionMember[] members)
aoqi@0 166 {
aoqi@0 167 return new TypeCodeImpl(this,
aoqi@0 168 TCKind._tk_union,
aoqi@0 169 id,
aoqi@0 170 name,
aoqi@0 171 discriminator_type,
aoqi@0 172 members);
aoqi@0 173 }
aoqi@0 174
aoqi@0 175 public TypeCode create_enum_tc(String id,
aoqi@0 176 String name,
aoqi@0 177 String[] members)
aoqi@0 178 {
aoqi@0 179 return new TypeCodeImpl(this, TCKind._tk_enum, id, name, members);
aoqi@0 180 }
aoqi@0 181
aoqi@0 182 public TypeCode create_alias_tc(String id,
aoqi@0 183 String name,
aoqi@0 184 TypeCode original_type)
aoqi@0 185 {
aoqi@0 186 return new TypeCodeImpl(this, TCKind._tk_alias, id, name, original_type);
aoqi@0 187 }
aoqi@0 188
aoqi@0 189 public TypeCode create_exception_tc(String id,
aoqi@0 190 String name,
aoqi@0 191 StructMember[] members)
aoqi@0 192 {
aoqi@0 193 return new TypeCodeImpl(this, TCKind._tk_except, id, name, members);
aoqi@0 194 }
aoqi@0 195
aoqi@0 196 public TypeCode create_interface_tc(String id,
aoqi@0 197 String name)
aoqi@0 198 {
aoqi@0 199 return new TypeCodeImpl(this, TCKind._tk_objref, id, name);
aoqi@0 200 }
aoqi@0 201
aoqi@0 202 public TypeCode create_string_tc(int bound) {
aoqi@0 203 return new TypeCodeImpl(this, TCKind._tk_string, bound);
aoqi@0 204 }
aoqi@0 205
aoqi@0 206 public TypeCode create_wstring_tc(int bound) {
aoqi@0 207 return new TypeCodeImpl(this, TCKind._tk_wstring, bound);
aoqi@0 208 }
aoqi@0 209
aoqi@0 210 public TypeCode create_sequence_tc(int bound,
aoqi@0 211 TypeCode element_type)
aoqi@0 212 {
aoqi@0 213 return new TypeCodeImpl(this, TCKind._tk_sequence, bound, element_type);
aoqi@0 214 }
aoqi@0 215
aoqi@0 216 public TypeCode create_recursive_sequence_tc(int bound,
aoqi@0 217 int offset)
aoqi@0 218 {
aoqi@0 219 return new TypeCodeImpl(this, TCKind._tk_sequence, bound, offset);
aoqi@0 220 }
aoqi@0 221
aoqi@0 222 public TypeCode create_array_tc(int length,
aoqi@0 223 TypeCode element_type)
aoqi@0 224 {
aoqi@0 225 return new TypeCodeImpl(this, TCKind._tk_array, length, element_type);
aoqi@0 226 }
aoqi@0 227
aoqi@0 228 public org.omg.CORBA.TypeCode create_native_tc(String id,
aoqi@0 229 String name)
aoqi@0 230 {
aoqi@0 231 return new TypeCodeImpl(this, TCKind._tk_native, id, name);
aoqi@0 232 }
aoqi@0 233
aoqi@0 234 public org.omg.CORBA.TypeCode create_abstract_interface_tc(
aoqi@0 235 String id,
aoqi@0 236 String name)
aoqi@0 237 {
aoqi@0 238 return new TypeCodeImpl(this, TCKind._tk_abstract_interface, id, name);
aoqi@0 239 }
aoqi@0 240
aoqi@0 241 public org.omg.CORBA.TypeCode create_fixed_tc(short digits, short scale)
aoqi@0 242 {
aoqi@0 243 return new TypeCodeImpl(this, TCKind._tk_fixed, digits, scale);
aoqi@0 244 }
aoqi@0 245
aoqi@0 246 // orbos 98-01-18: Objects By Value -- begin
aoqi@0 247
aoqi@0 248 public org.omg.CORBA.TypeCode create_value_tc(String id,
aoqi@0 249 String name,
aoqi@0 250 short type_modifier,
aoqi@0 251 TypeCode concrete_base,
aoqi@0 252 ValueMember[] members)
aoqi@0 253 {
aoqi@0 254 return new TypeCodeImpl(this, TCKind._tk_value, id, name,
aoqi@0 255 type_modifier, concrete_base, members);
aoqi@0 256 }
aoqi@0 257
aoqi@0 258 public org.omg.CORBA.TypeCode create_recursive_tc(String id) {
aoqi@0 259 return new TypeCodeImpl(this, id);
aoqi@0 260 }
aoqi@0 261
aoqi@0 262 public org.omg.CORBA.TypeCode create_value_box_tc(String id,
aoqi@0 263 String name,
aoqi@0 264 TypeCode boxed_type)
aoqi@0 265 {
aoqi@0 266 return new TypeCodeImpl(this, TCKind._tk_value_box, id, name, boxed_type);
aoqi@0 267 }
aoqi@0 268
aoqi@0 269 public TypeCode get_primitive_tc( TCKind tckind )
aoqi@0 270 {
aoqi@0 271 return get_primitive_tc( tckind.value() ) ;
aoqi@0 272 }
aoqi@0 273
aoqi@0 274 public Any create_any() {
aoqi@0 275 return new AnyImpl(this);
aoqi@0 276 }
aoqi@0 277
aoqi@0 278 // TypeCodeFactory interface methods.
aoqi@0 279 // Keeping track of type codes by repository id.
aoqi@0 280 /*
aoqi@0 281 * Not strictly needed for TypeCode factory duty but these seem
aoqi@0 282 * harmless enough.
aoqi@0 283 */
aoqi@0 284
aoqi@0 285 public NVList create_list(int count) {
aoqi@0 286 return new NVListImpl(this, count);
aoqi@0 287 }
aoqi@0 288
aoqi@0 289 public org.omg.CORBA.NVList
aoqi@0 290 create_operation_list(org.omg.CORBA.Object oper) {
aoqi@0 291 throw wrapper.genericNoImpl() ;
aoqi@0 292 }
aoqi@0 293
aoqi@0 294 public org.omg.CORBA.NamedValue
aoqi@0 295 create_named_value(String s, Any any, int flags) {
aoqi@0 296 return new NamedValueImpl(this, s, any, flags);
aoqi@0 297 }
aoqi@0 298
aoqi@0 299 public org.omg.CORBA.ExceptionList create_exception_list() {
aoqi@0 300 return new ExceptionListImpl();
aoqi@0 301 }
aoqi@0 302
aoqi@0 303 public org.omg.CORBA.ContextList create_context_list() {
aoqi@0 304 return new ContextListImpl(this);
aoqi@0 305 }
aoqi@0 306
aoqi@0 307 public org.omg.CORBA.Context get_default_context()
aoqi@0 308 {
aoqi@0 309 throw wrapper.genericNoImpl() ;
aoqi@0 310 }
aoqi@0 311
aoqi@0 312 public org.omg.CORBA.Environment create_environment()
aoqi@0 313 {
aoqi@0 314 return new EnvironmentImpl();
aoqi@0 315 }
aoqi@0 316
aoqi@0 317 public org.omg.CORBA.Current get_current()
aoqi@0 318 {
aoqi@0 319 throw wrapper.genericNoImpl() ;
aoqi@0 320 }
aoqi@0 321
aoqi@0 322 /*
aoqi@0 323 * Things that aren't allowed.
aoqi@0 324 */
aoqi@0 325
aoqi@0 326 public String[] list_initial_services ()
aoqi@0 327 {
aoqi@0 328 throw wrapper.genericNoImpl() ;
aoqi@0 329 }
aoqi@0 330
aoqi@0 331 public org.omg.CORBA.Object resolve_initial_references(String identifier)
aoqi@0 332 throws InvalidName
aoqi@0 333 {
aoqi@0 334 throw wrapper.genericNoImpl() ;
aoqi@0 335 }
aoqi@0 336
aoqi@0 337 public void register_initial_reference(
aoqi@0 338 String id, org.omg.CORBA.Object obj ) throws InvalidName
aoqi@0 339 {
aoqi@0 340 throw wrapper.genericNoImpl() ;
aoqi@0 341 }
aoqi@0 342
aoqi@0 343 public void send_multiple_requests_oneway(Request[] req) {
aoqi@0 344 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 345 }
aoqi@0 346
aoqi@0 347 public void send_multiple_requests_deferred(Request[] req) {
aoqi@0 348 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 349 }
aoqi@0 350
aoqi@0 351 public boolean poll_next_response() {
aoqi@0 352 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 353 }
aoqi@0 354
aoqi@0 355 public org.omg.CORBA.Request get_next_response() {
aoqi@0 356 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 357 }
aoqi@0 358
aoqi@0 359 public String object_to_string(org.omg.CORBA.Object obj) {
aoqi@0 360 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 361 }
aoqi@0 362
aoqi@0 363 public org.omg.CORBA.Object string_to_object(String s) {
aoqi@0 364 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 365 }
aoqi@0 366
aoqi@0 367 public java.rmi.Remote string_to_remote(String s)
aoqi@0 368 throws java.rmi.RemoteException
aoqi@0 369 {
aoqi@0 370 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 371 }
aoqi@0 372
aoqi@0 373 public void connect(org.omg.CORBA.Object servant) {
aoqi@0 374 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 375 }
aoqi@0 376
aoqi@0 377 public void disconnect(org.omg.CORBA.Object obj) {
aoqi@0 378 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 379 }
aoqi@0 380
aoqi@0 381 public void run()
aoqi@0 382 {
aoqi@0 383 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 384 }
aoqi@0 385
aoqi@0 386 public void shutdown(boolean wait_for_completion)
aoqi@0 387 {
aoqi@0 388 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 389 }
aoqi@0 390
aoqi@0 391 protected void shutdownServants(boolean wait_for_completion) {
aoqi@0 392 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 393 }
aoqi@0 394
aoqi@0 395 protected void destroyConnections() {
aoqi@0 396 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 397 }
aoqi@0 398
aoqi@0 399 public void destroy() {
aoqi@0 400 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 401 }
aoqi@0 402
aoqi@0 403 public boolean work_pending()
aoqi@0 404 {
aoqi@0 405 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 406 }
aoqi@0 407
aoqi@0 408 public void perform_work()
aoqi@0 409 {
aoqi@0 410 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 411 }
aoqi@0 412
aoqi@0 413 public org.omg.CORBA.portable.ValueFactory register_value_factory(String repositoryID,
aoqi@0 414 org.omg.CORBA.portable.ValueFactory factory)
aoqi@0 415 {
aoqi@0 416 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 417 }
aoqi@0 418
aoqi@0 419 public void unregister_value_factory(String repositoryID)
aoqi@0 420 {
aoqi@0 421 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 422 }
aoqi@0 423
aoqi@0 424 public org.omg.CORBA.portable.ValueFactory lookup_value_factory(String repositoryID)
aoqi@0 425 {
aoqi@0 426 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 427 }
aoqi@0 428
aoqi@0 429 public TransportManager getTransportManager()
aoqi@0 430 {
aoqi@0 431 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 432 }
aoqi@0 433
aoqi@0 434 public CorbaTransportManager getCorbaTransportManager()
aoqi@0 435 {
aoqi@0 436 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 437 }
aoqi@0 438
aoqi@0 439 public LegacyServerSocketManager getLegacyServerSocketManager()
aoqi@0 440 {
aoqi@0 441 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 442 }
aoqi@0 443
aoqi@0 444 /*************************************************************************
aoqi@0 445 These are methods from com.sun.corba.se.impl.se.core.ORB
aoqi@0 446 ************************************************************************/
aoqi@0 447
aoqi@0 448 private synchronized ORB getFullORB()
aoqi@0 449 {
aoqi@0 450 if (fullORB == null) {
aoqi@0 451 Properties props = new Properties() ;
aoqi@0 452 fullORB = new ORBImpl() ;
aoqi@0 453 fullORB.set_parameters( props ) ;
aoqi@0 454 }
aoqi@0 455
aoqi@0 456 return fullORB ;
aoqi@0 457 }
aoqi@0 458
aoqi@0 459 public RequestDispatcherRegistry getRequestDispatcherRegistry()
aoqi@0 460 {
aoqi@0 461 // To enable read_Object.
aoqi@0 462
aoqi@0 463 return getFullORB().getRequestDispatcherRegistry();
aoqi@0 464 }
aoqi@0 465
aoqi@0 466 /**
aoqi@0 467 * Return the service context registry
aoqi@0 468 */
aoqi@0 469 public ServiceContextRegistry getServiceContextRegistry()
aoqi@0 470 {
aoqi@0 471 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 472 }
aoqi@0 473
aoqi@0 474 /**
aoqi@0 475 * Get the transient server ID
aoqi@0 476 */
aoqi@0 477 public int getTransientServerId()
aoqi@0 478 {
aoqi@0 479 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 480 }
aoqi@0 481
aoqi@0 482 /**
aoqi@0 483 * Return the bootstrap naming port specified in the ORBInitialPort param.
aoqi@0 484 */
aoqi@0 485 public int getORBInitialPort()
aoqi@0 486 {
aoqi@0 487 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 488 }
aoqi@0 489
aoqi@0 490 /**
aoqi@0 491 * Return the bootstrap naming host specified in the ORBInitialHost param.
aoqi@0 492 */
aoqi@0 493 public String getORBInitialHost()
aoqi@0 494 {
aoqi@0 495 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 496 }
aoqi@0 497
aoqi@0 498 public String getORBServerHost()
aoqi@0 499 {
aoqi@0 500 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 501 }
aoqi@0 502
aoqi@0 503 public int getORBServerPort()
aoqi@0 504 {
aoqi@0 505 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 506 }
aoqi@0 507
aoqi@0 508 public CodeSetComponentInfo getCodeSetComponentInfo()
aoqi@0 509 {
aoqi@0 510 return new CodeSetComponentInfo();
aoqi@0 511 }
aoqi@0 512
aoqi@0 513 public boolean isLocalHost( String host )
aoqi@0 514 {
aoqi@0 515 // To enable read_Object.
aoqi@0 516 return false;
aoqi@0 517 }
aoqi@0 518
aoqi@0 519 public boolean isLocalServerId( int subcontractId, int serverId )
aoqi@0 520 {
aoqi@0 521 // To enable read_Object.
aoqi@0 522 return false;
aoqi@0 523 }
aoqi@0 524
aoqi@0 525 /*
aoqi@0 526 * Things from corba.ORB.
aoqi@0 527 */
aoqi@0 528
aoqi@0 529 public ORBVersion getORBVersion()
aoqi@0 530 {
aoqi@0 531 // Always use our latest ORB version (latest fixes, etc)
aoqi@0 532 return ORBVersionFactory.getORBVersion();
aoqi@0 533 }
aoqi@0 534
aoqi@0 535 public void setORBVersion(ORBVersion verObj)
aoqi@0 536 {
aoqi@0 537 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 538 }
aoqi@0 539
aoqi@0 540 public String getAppletHost()
aoqi@0 541 {
aoqi@0 542 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 543 }
aoqi@0 544
aoqi@0 545 public URL getAppletCodeBase()
aoqi@0 546 {
aoqi@0 547 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 548 }
aoqi@0 549
aoqi@0 550 public int getHighWaterMark(){
aoqi@0 551 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 552 }
aoqi@0 553
aoqi@0 554 public int getLowWaterMark(){
aoqi@0 555 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 556 }
aoqi@0 557
aoqi@0 558 public int getNumberToReclaim(){
aoqi@0 559 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 560 }
aoqi@0 561
aoqi@0 562 public int getGIOPFragmentSize() {
aoqi@0 563 return ORBConstants.GIOP_DEFAULT_BUFFER_SIZE;
aoqi@0 564 }
aoqi@0 565
aoqi@0 566 public int getGIOPBuffMgrStrategy(GIOPVersion gv) {
aoqi@0 567 return BufferManagerFactory.GROW;
aoqi@0 568 }
aoqi@0 569
aoqi@0 570 public IOR getFVDCodeBaseIOR(){
aoqi@0 571 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 572 }
aoqi@0 573
aoqi@0 574 public Policy create_policy( int type, Any val ) throws PolicyError
aoqi@0 575 {
aoqi@0 576 throw new NO_IMPLEMENT();
aoqi@0 577 }
aoqi@0 578
aoqi@0 579 public LegacyServerSocketEndPointInfo getServerEndpoint()
aoqi@0 580 {
aoqi@0 581 return null ;
aoqi@0 582 }
aoqi@0 583
aoqi@0 584 public void setPersistentServerId( int id )
aoqi@0 585 {
aoqi@0 586 }
aoqi@0 587
aoqi@0 588 public TypeCodeImpl getTypeCodeForClass( Class c )
aoqi@0 589 {
aoqi@0 590 return null ;
aoqi@0 591 }
aoqi@0 592
aoqi@0 593 public void setTypeCodeForClass( Class c, TypeCodeImpl tcimpl )
aoqi@0 594 {
aoqi@0 595 }
aoqi@0 596
aoqi@0 597 public boolean alwaysSendCodeSetServiceContext()
aoqi@0 598 {
aoqi@0 599 return true ;
aoqi@0 600 }
aoqi@0 601
aoqi@0 602 public boolean isDuringDispatch()
aoqi@0 603 {
aoqi@0 604 return false ;
aoqi@0 605 }
aoqi@0 606
aoqi@0 607 public void notifyORB() { }
aoqi@0 608
aoqi@0 609 public PIHandler getPIHandler()
aoqi@0 610 {
aoqi@0 611 return null ;
aoqi@0 612 }
aoqi@0 613
aoqi@0 614 public void checkShutdownState()
aoqi@0 615 {
aoqi@0 616 }
aoqi@0 617
aoqi@0 618 public void startingDispatch()
aoqi@0 619 {
aoqi@0 620 }
aoqi@0 621
aoqi@0 622 public void finishedDispatch()
aoqi@0 623 {
aoqi@0 624 }
aoqi@0 625
aoqi@0 626 public void registerInitialReference( String id, Closure closure )
aoqi@0 627 {
aoqi@0 628 }
aoqi@0 629
aoqi@0 630 public ORBData getORBData()
aoqi@0 631 {
aoqi@0 632 return getFullORB().getORBData() ;
aoqi@0 633 }
aoqi@0 634
aoqi@0 635 public void setClientDelegateFactory( ClientDelegateFactory factory )
aoqi@0 636 {
aoqi@0 637 }
aoqi@0 638
aoqi@0 639 public ClientDelegateFactory getClientDelegateFactory()
aoqi@0 640 {
aoqi@0 641 return getFullORB().getClientDelegateFactory() ;
aoqi@0 642 }
aoqi@0 643
aoqi@0 644 public void setCorbaContactInfoListFactory( CorbaContactInfoListFactory factory )
aoqi@0 645 {
aoqi@0 646 }
aoqi@0 647
aoqi@0 648 public CorbaContactInfoListFactory getCorbaContactInfoListFactory()
aoqi@0 649 {
aoqi@0 650 return getFullORB().getCorbaContactInfoListFactory() ;
aoqi@0 651 }
aoqi@0 652
aoqi@0 653 public Operation getURLOperation()
aoqi@0 654 {
aoqi@0 655 return null ;
aoqi@0 656 }
aoqi@0 657
aoqi@0 658 public void setINSDelegate( CorbaServerRequestDispatcher sdel )
aoqi@0 659 {
aoqi@0 660 }
aoqi@0 661
aoqi@0 662 public TaggedComponentFactoryFinder getTaggedComponentFactoryFinder()
aoqi@0 663 {
aoqi@0 664 return getFullORB().getTaggedComponentFactoryFinder() ;
aoqi@0 665 }
aoqi@0 666
aoqi@0 667 public IdentifiableFactoryFinder getTaggedProfileFactoryFinder()
aoqi@0 668 {
aoqi@0 669 return getFullORB().getTaggedProfileFactoryFinder() ;
aoqi@0 670 }
aoqi@0 671
aoqi@0 672 public IdentifiableFactoryFinder getTaggedProfileTemplateFactoryFinder()
aoqi@0 673 {
aoqi@0 674 return getFullORB().getTaggedProfileTemplateFactoryFinder() ;
aoqi@0 675 }
aoqi@0 676
aoqi@0 677 public ObjectKeyFactory getObjectKeyFactory()
aoqi@0 678 {
aoqi@0 679 return getFullORB().getObjectKeyFactory() ;
aoqi@0 680 }
aoqi@0 681
aoqi@0 682 public void setObjectKeyFactory( ObjectKeyFactory factory )
aoqi@0 683 {
aoqi@0 684 throw new SecurityException("ORBSingleton: access denied");
aoqi@0 685 }
aoqi@0 686
aoqi@0 687 public void handleBadServerId( ObjectKey okey )
aoqi@0 688 {
aoqi@0 689 }
aoqi@0 690
aoqi@0 691 public OAInvocationInfo peekInvocationInfo()
aoqi@0 692 {
aoqi@0 693 return null ;
aoqi@0 694 }
aoqi@0 695
aoqi@0 696 public void pushInvocationInfo( OAInvocationInfo info )
aoqi@0 697 {
aoqi@0 698 }
aoqi@0 699
aoqi@0 700 public OAInvocationInfo popInvocationInfo()
aoqi@0 701 {
aoqi@0 702 return null ;
aoqi@0 703 }
aoqi@0 704
aoqi@0 705 public ClientInvocationInfo createOrIncrementInvocationInfo()
aoqi@0 706 {
aoqi@0 707 return null ;
aoqi@0 708 }
aoqi@0 709
aoqi@0 710 public void releaseOrDecrementInvocationInfo()
aoqi@0 711 {
aoqi@0 712 }
aoqi@0 713
aoqi@0 714 public ClientInvocationInfo getInvocationInfo()
aoqi@0 715 {
aoqi@0 716 return null ;
aoqi@0 717 }
aoqi@0 718
aoqi@0 719 public ConnectionCache getConnectionCache(ContactInfo contactInfo)
aoqi@0 720 {
aoqi@0 721 return null;
aoqi@0 722 }
aoqi@0 723
aoqi@0 724 public void setResolver( Resolver resolver )
aoqi@0 725 {
aoqi@0 726 }
aoqi@0 727
aoqi@0 728 public Resolver getResolver()
aoqi@0 729 {
aoqi@0 730 return null ;
aoqi@0 731 }
aoqi@0 732
aoqi@0 733 public void setLocalResolver( LocalResolver resolver )
aoqi@0 734 {
aoqi@0 735 }
aoqi@0 736
aoqi@0 737 public LocalResolver getLocalResolver()
aoqi@0 738 {
aoqi@0 739 return null ;
aoqi@0 740 }
aoqi@0 741
aoqi@0 742 public void setURLOperation( Operation stringToObject )
aoqi@0 743 {
aoqi@0 744 }
aoqi@0 745
aoqi@0 746 // NOTE: REMOVE THIS METHOD ONCE WE HAVE A ORT BASED ORBD
aoqi@0 747 public void setBadServerIdHandler( BadServerIdHandler handler )
aoqi@0 748 {
aoqi@0 749 }
aoqi@0 750
aoqi@0 751 // NOTE: REMOVE THIS METHOD ONCE WE HAVE A ORT BASED ORBD
aoqi@0 752 public void initBadServerIdHandler()
aoqi@0 753 {
aoqi@0 754 }
aoqi@0 755
aoqi@0 756 public Selector getSelector(int x)
aoqi@0 757 {
aoqi@0 758 return null;
aoqi@0 759 }
aoqi@0 760
aoqi@0 761 public void setThreadPoolManager(ThreadPoolManager mgr) {
aoqi@0 762 }
aoqi@0 763
aoqi@0 764 public ThreadPoolManager getThreadPoolManager() {
aoqi@0 765 return null;
aoqi@0 766 }
aoqi@0 767
aoqi@0 768 public CopierManager getCopierManager() {
aoqi@0 769 return null ;
aoqi@0 770 }
aoqi@0 771 }
aoqi@0 772
aoqi@0 773 // End of file.

mercurial