public class UtilDelegateImpl
extends java.lang.Object
implements javax.rmi.CORBA.UtilDelegate
| Constructor and Description |
|---|
UtilDelegateImpl()
Empty default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
copyObject(java.lang.Object obj,
org.omg.CORBA.ORB orb)
The copyObject method is used by local stubs to copy an actual parameter, result
object, or exception.
|
java.lang.Object[] |
copyObjects(java.lang.Object[] obj,
org.omg.CORBA.ORB orb)
The copyObjects method is used by local stubs to copy any
number of actual parameters, preserving sharing across parameters as necessary to
support RMI/IDL semantics.
|
static javax.rmi.CORBA.UtilDelegate |
createUtilDelegate()
This method creates one instance of the class per process.
|
javax.rmi.CORBA.ValueHandler |
createValueHandler()
This method returns a singleton instance of a class that implements
the ValueHandler interface.
|
void |
enableLogging(Logger logger) |
java.lang.String |
getCodebase(java.lang.Class clz)
The getCodebase method returns the Java codebase for the Class object clz as a
space-separated list of URLs.
|
static boolean |
getCopyLocalObjects()
Get the copyLocalObjects flag.
|
static boolean |
getIsLocalResult()
Get the isLocalResult flag.
|
static boolean |
getLocalCodebaseOnly()
Get the RMIClassloader flag.
|
Logger |
getLogger() |
static boolean |
getProhibitIsLocalTest()
Get the prohibitIsLocalTest flag.
|
javax.rmi.CORBA.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.
|
boolean |
isLocal(javax.rmi.CORBA.Stub s)
This method has the same semantics as the ObjectImpl's _is_local() method, except
that it can throw a RemoteException.
|
java.lang.Class |
loadClass(java.lang.String className,
java.lang.String remoteCodebase,
java.lang.Class loadingContext)
The loadClass method loads a Java class object for the Java class name
className, using additional information passed in the remoteCodebase and
loader parameters.
|
java.lang.Class |
loadClass(java.lang.String className,
java.lang.String remoteCodebase,
java.lang.ClassLoader loadingContext)
The loadClass method loads a Java class object for the Java class name
className, using additional information passed in the remoteCodebase and
loader parameters.
|
static org.omg.CORBA.TypeCode |
lookupRuntimeTypeCode(java.lang.Object obj)
Create typecode from runtime class.
|
java.rmi.RemoteException |
mapSystemException(org.omg.CORBA.SystemException ex)
The mapSystemException method maps a CORBA system exception to a
java.rmi.RemoteException or a java.rmi.RuntimeException.The
mapping is described in Section 1.4.8, Mapping CORBA System Exceptions to RMI
Exceptions, on page 1-34.
|
java.lang.Object |
readAny(org.omg.CORBA.portable.InputStream in)
The readAny method reads a GIOP any from the input stream in and unmarshals it
as a Java object, which is returned.
|
void |
registerTarget(javax.rmi.CORBA.Tie tie,
java.rmi.Remote target)
The registerTarget method is needed to support unexportObject.
|
static void |
setCopyLocalObjects(boolean copy_local_objects)
Set the copyLocalObjects flag.
|
static void |
setIsLocalResult(boolean is_local_result)
Set the isLocalResult flag.
|
static void |
setLocalCodebaseOnly(boolean local_codebase_only)
Set the RMIClassloader flag.
|
static void |
setProhibitIsLocalTest(boolean prohibit_is_local_test)
Set the prohibitIsLocalTest flag.
|
void |
unexportObject(java.rmi.Remote target)
The unexportObject method deactivates an implementation object and removes its
associated Tie from the table maintained by the Util class.
|
java.rmi.RemoteException |
wrapException(java.lang.Throwable obj)
The wrapException method wraps an exception thrown by an implementation
method.
|
void |
writeAbstractObject(org.omg.CORBA.portable.OutputStream out,
java.lang.Object obj)
The writeAbstractObject method is another similar utility method for use by
stubs.
|
void |
writeAny(org.omg.CORBA.portable.OutputStream out,
java.lang.Object obj)
The writeAny method writes the Java object obj to the output stream out in the
form of a GIOP any.
|
void |
writeRemoteObject(org.omg.CORBA.portable.OutputStream out,
java.lang.Object obj)
The writeRemoteObject method is a utility method for use by stubs when writing
an RMI/IDL object reference to an output stream.
|
public UtilDelegateImpl()
public static javax.rmi.CORBA.UtilDelegate createUtilDelegate()
public void enableLogging(Logger logger)
public Logger getLogger()
public java.rmi.RemoteException mapSystemException(org.omg.CORBA.SystemException ex)
mapSystemException in interface javax.rmi.CORBA.UtilDelegateex - The CORBA system exception to map.public void writeAny(org.omg.CORBA.portable.OutputStream out,
java.lang.Object obj)
writeAny in interface javax.rmi.CORBA.UtilDelegateout - The output stream to which the object is written.obj - The object to be written to the stream.public java.lang.Object readAny(org.omg.CORBA.portable.InputStream in)
readAny in interface javax.rmi.CORBA.UtilDelegatein - The input stream from which to read the object.public void writeRemoteObject(org.omg.CORBA.portable.OutputStream out,
java.lang.Object obj)
writeRemoteObject in interface javax.rmi.CORBA.UtilDelegateout - The output stream to which to write the object to.obj - The object to write to the stream.public void writeAbstractObject(org.omg.CORBA.portable.OutputStream out,
java.lang.Object obj)
writeAbstractObject in interface javax.rmi.CORBA.UtilDelegateout - The output stream to which to write the obejct to.obj - The object to be written to the stream.public void registerTarget(javax.rmi.CORBA.Tie tie,
java.rmi.Remote target)
registerTarget in interface javax.rmi.CORBA.UtilDelegatetie - The tie that is connected to the target object.target - The target object.public void unexportObject(java.rmi.Remote target)
unexportObject in interface javax.rmi.CORBA.UtilDelegatetarget - The target object to deactivate.public javax.rmi.CORBA.Tie getTie(java.rmi.Remote target)
getTie in interface javax.rmi.CORBA.UtilDelegatetarget - The target object to get the tie for.public javax.rmi.CORBA.ValueHandler createValueHandler()
createValueHandler in interface javax.rmi.CORBA.UtilDelegatepublic java.rmi.RemoteException wrapException(java.lang.Throwable obj)
wrapException in interface javax.rmi.CORBA.UtilDelegateobj - The throwable object to wrap into a RemoteException.public java.lang.Object copyObject(java.lang.Object obj,
org.omg.CORBA.ORB orb)
throws java.rmi.RemoteException
copyObject in interface javax.rmi.CORBA.UtilDelegateobj - The object to copy.orb - The ORB where the object is running on.java.rmi.RemoteException - When an error occurs.public java.lang.Object[] copyObjects(java.lang.Object[] obj,
org.omg.CORBA.ORB orb)
throws java.rmi.RemoteException
copyObjects in interface javax.rmi.CORBA.UtilDelegateobj - An array of objects to copy.orb - The orb on which the objects are running.java.rmi.RemoteException - When an error occurs.public boolean isLocal(javax.rmi.CORBA.Stub s)
throws java.rmi.RemoteException
isLocal in interface javax.rmi.CORBA.UtilDelegates - The stub to check.java.rmi.RemoteException - When an error occurs.public java.lang.String getCodebase(java.lang.Class clz)
getCodebase in interface javax.rmi.CORBA.UtilDelegateclz - The class for which to get the codebase.public java.lang.Class loadClass(java.lang.String className,
java.lang.String remoteCodebase,
java.lang.Class loadingContext)
throws java.lang.ClassNotFoundException
loadClass in interface javax.rmi.CORBA.UtilDelegateclassName - The class to load.remoteCodebase - A list of URLs.loadingContext - The loading context.java.lang.ClassNotFoundException - When the class could not be loaded.public java.lang.Class loadClass(java.lang.String className,
java.lang.String remoteCodebase,
java.lang.ClassLoader loadingContext)
throws java.lang.ClassNotFoundException
loadClass in interface javax.rmi.CORBA.UtilDelegateclassName - The class to load.remoteCodebase - A list of URLs.loadingContext - The loading context.java.lang.ClassNotFoundException - When the class could not be loaded.public static org.omg.CORBA.TypeCode lookupRuntimeTypeCode(java.lang.Object obj)
throws java.io.InvalidClassException
obj - The object for which to look the type code up.java.io.InvalidClassException - When the type() method could not be invoked
on the helper class.public static boolean getIsLocalResult()
public static void setIsLocalResult(boolean is_local_result)
is_local_result - The new value of the flag.public static boolean getProhibitIsLocalTest()
public static void setProhibitIsLocalTest(boolean prohibit_is_local_test)
prohibit_is_local_test - The new value of the flag.public static boolean getLocalCodebaseOnly()
public static void setLocalCodebaseOnly(boolean local_codebase_only)
local_codebase_only - The new value of the flag.public static boolean getCopyLocalObjects()
public static void setCopyLocalObjects(boolean copy_local_objects)
copy_local_objects - The new value of the flag.