src/share/classes/javax/rmi/CORBA/Util.java

Print this page
rev 597 : 8047722: @since tag cleanup in corba
Reviewed-by:


  39 import org.omg.CORBA.Any;
  40 import org.omg.CORBA.portable.InputStream;
  41 import org.omg.CORBA.portable.OutputStream;
  42 import org.omg.CORBA.portable.ObjectImpl;
  43 
  44 import javax.rmi.CORBA.Tie;
  45 import java.rmi.Remote;
  46 import java.io.File;
  47 import java.io.FileInputStream;
  48 import java.net.MalformedURLException ;
  49 import java.security.AccessController;
  50 import java.security.PrivilegedAction;
  51 import java.util.Properties;
  52 import java.rmi.server.RMIClassLoader;
  53 
  54 import com.sun.corba.se.impl.orbutil.GetPropertyAction;
  55 
  56 /**
  57  * Provides utility methods that can be used by stubs and ties to
  58  * perform common operations.


  59  */
  60 public class Util {
  61 
  62     // This can only be set at static initialization time (no sync necessary).
  63     private static final javax.rmi.CORBA.UtilDelegate utilDelegate;
  64     private static final String UtilClassKey = "javax.rmi.CORBA.UtilClass";
  65 
  66     static {
  67         utilDelegate = (javax.rmi.CORBA.UtilDelegate)createDelegate(UtilClassKey);
  68     }
  69 
  70     private Util(){}
  71 
  72     /**
  73      * Maps a SystemException to a RemoteException.
  74      * @param ex the SystemException to map.
  75      * @return the mapped exception.
  76      */
  77     public static RemoteException mapSystemException(SystemException ex) {
  78 




  39 import org.omg.CORBA.Any;
  40 import org.omg.CORBA.portable.InputStream;
  41 import org.omg.CORBA.portable.OutputStream;
  42 import org.omg.CORBA.portable.ObjectImpl;
  43 
  44 import javax.rmi.CORBA.Tie;
  45 import java.rmi.Remote;
  46 import java.io.File;
  47 import java.io.FileInputStream;
  48 import java.net.MalformedURLException ;
  49 import java.security.AccessController;
  50 import java.security.PrivilegedAction;
  51 import java.util.Properties;
  52 import java.rmi.server.RMIClassLoader;
  53 
  54 import com.sun.corba.se.impl.orbutil.GetPropertyAction;
  55 
  56 /**
  57  * Provides utility methods that can be used by stubs and ties to
  58  * perform common operations.
  59  *
  60  * @since 1.3
  61  */
  62 public class Util {
  63 
  64     // This can only be set at static initialization time (no sync necessary).
  65     private static final javax.rmi.CORBA.UtilDelegate utilDelegate;
  66     private static final String UtilClassKey = "javax.rmi.CORBA.UtilClass";
  67 
  68     static {
  69         utilDelegate = (javax.rmi.CORBA.UtilDelegate)createDelegate(UtilClassKey);
  70     }
  71 
  72     private Util(){}
  73 
  74     /**
  75      * Maps a SystemException to a RemoteException.
  76      * @param ex the SystemException to map.
  77      * @return the mapped exception.
  78      */
  79     public static RemoteException mapSystemException(SystemException ex) {
  80