Package javax.rmi.CORBA
Interface UtilDelegate
-
- All Known Implementing Classes:
Util
public interface UtilDelegateSupports delegation for method implementations inUtil. The delegate is a singleton instance of a class that implements this interface and provides a replacement implementation for all the methods ofjavax.rmi.CORBA.Util. Delegation is enabled by providing the delegate's class name as the value of thejavax.rmi.CORBA.UtilClasssystem property.- See Also:
Util
-
-
Method Summary
-
-
-
Method Detail
-
mapSystemException
java.rmi.RemoteException mapSystemException(SystemException ex)
Delegation call forUtil.mapSystemException(org.omg.CORBA.SystemException).- Parameters:
ex- the SystemException to map.- Returns:
- the mapped exception.
-
writeAny
void writeAny(OutputStream out, java.lang.Object obj)
Delegation call forUtil.writeAny(org.omg.CORBA.portable.OutputStream, java.lang.Object).- Parameters:
out- the stream in which to write the any.obj- the object to write as an any.
-
readAny
java.lang.Object readAny(InputStream in)
Delegation call forUtil.readAny(org.omg.CORBA.portable.InputStream).- Parameters:
in- the stream from which to read the any.- Returns:
- the object read from the stream.
-
writeRemoteObject
void writeRemoteObject(OutputStream out, java.lang.Object obj)
Delegation call forUtil.writeRemoteObject(org.omg.CORBA.portable.OutputStream, java.lang.Object).- Parameters:
out- the stream in which to write the object.obj- the object to write.
-
writeAbstractObject
void writeAbstractObject(OutputStream out, java.lang.Object obj)
Delegation call forUtil.writeAbstractObject(org.omg.CORBA.portable.OutputStream, java.lang.Object).- Parameters:
out- the stream in which to write the object.obj- the object to write.
-
registerTarget
void registerTarget(Tie tie, java.rmi.Remote target)
Delegation call forUtil.registerTarget(javax.rmi.CORBA.Tie, java.rmi.Remote).- Parameters:
tie- tie to registertarget- target for the tie
-
unexportObject
void unexportObject(java.rmi.Remote target) throws java.rmi.NoSuchObjectExceptionDelegation call forUtil.unexportObject(java.rmi.Remote).- Parameters:
target- the object to unexport- Throws:
java.rmi.NoSuchObjectException- if the target object does not exist
-
getTie
Tie getTie(java.rmi.Remote target)
Delegation call forUtil.getTie(java.rmi.Remote).- Parameters:
target- the object to get the tie for- Returns:
- the tie or null if no tie is registered for the given target.
-
createValueHandler
ValueHandler createValueHandler()
Delegation call forUtil.createValueHandler().- Returns:
- a class which implements the ValueHandler interface.
-
getCodebase
java.lang.String getCodebase(java.lang.Class clz)
Delegation call forUtil.getCodebase(java.lang.Class).- Parameters:
clz- the class to get a codebase for.- Returns:
- a space-separated list of URLs, or null.
-
loadClass
java.lang.Class loadClass(java.lang.String className, java.lang.String remoteCodebase, java.lang.ClassLoader loader) throws java.lang.ClassNotFoundExceptionDelegation call forUtil.loadClass(java.lang.String, java.lang.String, java.lang.ClassLoader).- Parameters:
className- the name of the class.remoteCodebase- a space-separated list of URLs at which the class might be found. May be null.loader- a ClassLoader that may be used to load the class if all other methods fail.- Returns:
- the
Classobject representing the loaded class. - Throws:
java.lang.ClassNotFoundException- if class cannot be loaded.
-
isLocal
boolean isLocal(Stub stub) throws java.rmi.RemoteException
Delegation call forUtil.isLocal(javax.rmi.CORBA.Stub).- Parameters:
stub- the stub to test.- Returns:
- The is_local() method returns true if the servant incarnating the object is located in the same process as the stub and they both share the same ORB instance. The is_local() method returns false otherwise. The default behaviour of is_local() is to return false.
- Throws:
java.rmi.RemoteException- The Java to IDL specification does not specify the conditions that cause a RemoteException to be thrown.
-
wrapException
java.rmi.RemoteException wrapException(java.lang.Throwable obj)
Delegation call forUtil.wrapException(java.lang.Throwable).- Parameters:
obj- the exception to wrap.- Returns:
- the wrapped exception.
-
copyObject
java.lang.Object copyObject(java.lang.Object obj, ORB orb) throws java.rmi.RemoteExceptionDelegation call forUtil.copyObject(java.lang.Object, org.omg.CORBA.ORB).- Parameters:
obj- the object to copy or connect.orb- the ORB- Returns:
- the copied or connected object.
- Throws:
java.rmi.RemoteException- if the object could not be copied or connected.
-
copyObjects
java.lang.Object[] copyObjects(java.lang.Object[] obj, ORB orb) throws java.rmi.RemoteExceptionDelegation call forUtil.copyObjects(java.lang.Object[], org.omg.CORBA.ORB).- Parameters:
obj- the objects to copy or connect.orb- the ORB- Returns:
- the copied or connected objects.
- Throws:
java.rmi.RemoteException- if the objects could not be copied or connected.
-
-