|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rmi.CORBA.Util
This class provides some utility methods to manage RMI objects and mechanisms over GIOP
Constructor Summary | |
Util()
|
Method Summary | |
static java.lang.Object |
copyObject(java.lang.Object obj,
ORB orb)
This method is used by local stubs to copy an actuel parameter, result object or exception. |
static java.lang.Object[] |
copyObjects(java.lang.Object[] obj,
ORB orb)
This method do the same as above on multiple objects. |
static ValueHandler |
createValueHandler()
This method returns a singleton instance of a class that implements the ValueHandler interface. |
static java.lang.String |
getCodebase(java.lang.Class clz)
This method returns a java class object for the Class object clz as a space-separated list of URLs. |
static Tie |
getTie(java.rmi.Remote target)
This method return the Tie object for an implementation object target, or null if no Tie is registered for the target object. |
static boolean |
isLocal(Stub s)
This method has the same semantics as the ObjectImpl _is_local() method, except that it can throw a RemoteException |
static java.lang.Class |
loadClass(java.lang.String className,
java.lang.String remoteCodebase,
java.lang.Class loadingContext)
This method loads a java class object the java class name, using additional information passed in the remoteCodeBase and loadingContext parameters. |
static java.lang.Class |
loadClass(java.lang.String className,
java.lang.String remoteCodebase,
java.lang.ClassLoader loadingContext)
This method loads a java class object the java class name, using additional information passed in the remoteCodeBase and loadingContext parameters. |
static java.rmi.RemoteException |
mapSystemException(SystemException ex)
This method maps a CORBA system exception to a java.rmi.RemoteException |
static java.lang.Object |
readAny(InputStream in)
This method reads a GIOP any from the input stream in and unmarshals it as a java object. |
static void |
registerTarget(Tie tie,
java.rmi.Remote target)
This method is needed to support unexportObject, because it takes a target implementation object as its parameter, it is necessary for the Util class to maintain a table mapping target objects back to their associated Ties. |
static void |
unexportObject(java.rmi.Remote target)
Thie method deactivates an implementation object and remove its associated Tie from the table mainted by the Util class. |
static java.rmi.RemoteException |
wrapException(java.lang.Throwable obj)
The wrapException method wraps an exception thrown by an implementation method. |
static void |
writeAbstractObject(OutputStream out,
java.lang.Object obj)
This method is another similar utility method for used by stubs. |
static void |
writeAny(OutputStream out,
java.lang.Object obj)
This method writes the java object obj to the output stream out in the form of a GIOP any. |
static void |
writeRemoteObject(OutputStream out,
java.lang.Object obj)
This method is an utility method for use by stubs when writing an RMI/IDL object reference to an output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Util()
Method Detail |
public static java.rmi.RemoteException mapSystemException(SystemException ex)
public static void writeAny(OutputStream out, java.lang.Object obj)
public static java.lang.Object readAny(InputStream in)
public static void writeRemoteObject(OutputStream out, java.lang.Object obj)
public static void writeAbstractObject(OutputStream out, java.lang.Object obj)
public static void registerTarget(Tie tie, java.rmi.Remote target)
public static void unexportObject(java.rmi.Remote target)
public static Tie getTie(java.rmi.Remote target)
public static ValueHandler createValueHandler()
public static java.rmi.RemoteException wrapException(java.lang.Throwable obj)
public static java.lang.Object copyObject(java.lang.Object obj, ORB orb) throws java.rmi.RemoteException
java.rmi.RemoteException
public static java.lang.Object[] copyObjects(java.lang.Object[] obj, ORB orb) throws java.rmi.RemoteException
java.rmi.RemoteException
public static boolean isLocal(Stub s) throws java.rmi.RemoteException
java.rmi.RemoteException
public static java.lang.String getCodebase(java.lang.Class clz)
public static java.lang.Class loadClass(java.lang.String className, java.lang.String remoteCodebase, java.lang.Class loadingContext) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public static java.lang.Class loadClass(java.lang.String className, java.lang.String remoteCodebase, java.lang.ClassLoader loadingContext) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |