src/share/classes/com/sun/corba/se/spi/orb/OperationFactory.java

changeset 475
39d15bbb5741
parent 205
b2fff4b7e8cd
child 748
6845b95cba6b
equal deleted inserted replaced
458:44a8ce4a759f 475:39d15bbb5741
1 /* 1 /*
2 * Copyright (c) 2002, 2010, 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
33 import java.net.MalformedURLException ; 33 import java.net.MalformedURLException ;
34 34
35 import com.sun.corba.se.spi.logging.CORBALogDomains ; 35 import com.sun.corba.se.spi.logging.CORBALogDomains ;
36 36
37 import com.sun.corba.se.impl.logging.ORBUtilSystemException ; 37 import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
38 import com.sun.corba.se.impl.orbutil.ORBClassLoader ;
39 import com.sun.corba.se.impl.orbutil.ObjectUtility ; 38 import com.sun.corba.se.impl.orbutil.ObjectUtility ;
39
40 import sun.corba.SharedSecrets;
40 41
41 /** This is a static factory class for commonly used operations 42 /** This is a static factory class for commonly used operations
42 * for property parsing. The following operations are supported: 43 * for property parsing. The following operations are supported:
43 * <ul> 44 * <ul>
44 * <li>maskErrorAction( Operation op ) executes op and returns the result. If op throws an 45 * <li>maskErrorAction( Operation op ) executes op and returns the result. If op throws an
245 public Object operate( Object value ) 246 public Object operate( Object value )
246 { 247 {
247 String className = getString( value ) ; 248 String className = getString( value ) ;
248 249
249 try { 250 try {
250 Class result = ORBClassLoader.loadClass( className ) ; 251 Class<?> result =
252 SharedSecrets.getJavaCorbaAccess().loadClass( className ) ;
251 return result ; 253 return result ;
252 } catch (Exception exc) { 254 } catch (Exception exc) {
253 ORBUtilSystemException wrapper = ORBUtilSystemException.get( 255 ORBUtilSystemException wrapper = ORBUtilSystemException.get(
254 CORBALogDomains.ORB_LIFECYCLE ) ; 256 CORBALogDomains.ORB_LIFECYCLE ) ;
255 throw wrapper.couldNotLoadClass( exc, className ) ; 257 throw wrapper.couldNotLoadClass( exc, className ) ;

mercurial