equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
95 import com.sun.corba.se.impl.logging.ORBUtilSystemException ; |
95 import com.sun.corba.se.impl.logging.ORBUtilSystemException ; |
96 import com.sun.corba.se.impl.logging.OMGSystemException ; |
96 import com.sun.corba.se.impl.logging.OMGSystemException ; |
97 |
97 |
98 import com.sun.corba.se.impl.presentation.rmi.PresentationManagerImpl ; |
98 import com.sun.corba.se.impl.presentation.rmi.PresentationManagerImpl ; |
99 |
99 |
100 import com.sun.corba.se.impl.orbutil.ORBClassLoader ; |
|
101 import sun.awt.AppContext; |
100 import sun.awt.AppContext; |
|
101 import sun.corba.SharedSecrets; |
102 |
102 |
103 public abstract class ORB extends com.sun.corba.se.org.omg.CORBA.ORB |
103 public abstract class ORB extends com.sun.corba.se.org.omg.CORBA.ORB |
104 implements Broker, TypeCodeFactory |
104 implements Broker, TypeCodeFactory |
105 { |
105 { |
106 // As much as possible, this class should be stateless. However, |
106 // As much as possible, this class should be stateless. However, |
199 ORBConstants.DYNAMIC_STUB_FACTORY_FACTORY_CLASS, |
199 ORBConstants.DYNAMIC_STUB_FACTORY_FACTORY_CLASS, |
200 "com.sun.corba.se.impl.presentation.rmi.bcel.StubFactoryFactoryBCELImpl" ) ; |
200 "com.sun.corba.se.impl.presentation.rmi.bcel.StubFactoryFactoryBCELImpl" ) ; |
201 |
201 |
202 try { |
202 try { |
203 // First try the configured class name, if any |
203 // First try the configured class name, if any |
204 Class cls = ORBClassLoader.loadClass( className ) ; |
204 Class<?> cls = SharedSecrets.getJavaCorbaAccess().loadClass( className ) ; |
205 sff = (PresentationManager.StubFactoryFactory)cls.newInstance() ; |
205 sff = (PresentationManager.StubFactoryFactory)cls.newInstance() ; |
206 } catch (Exception exc) { |
206 } catch (Exception exc) { |
207 // Use the default. Log the error as a warning. |
207 // Use the default. Log the error as a warning. |
208 staticWrapper.errorInSettingDynamicStubFactoryFactory( |
208 staticWrapper.errorInSettingDynamicStubFactoryFactory( |
209 exc, className ) ; |
209 exc, className ) ; |