|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.david.libs.helpers.RMIUtilDelegate
Delegate class for javax.rmi.CORBA.Util
.
This class is parameterized using elements of the bootstrap context:
value
handler
implementation. If not set, Java serialization is used instead of
CORBA serialization.
With JDK 1.3, the name of the class to use to have a standard implementation is "com.sun.corba.se.internal.io.ValueHandlerImpl".
Field Summary |
Fields inherited from interface org.objectweb.david.libs.binding.orbs.Constants |
corba_object_id, corba_prefix, TC_any, TC_boolean, TC_char, TC_double, TC_float, TC_long, TC_longdouble, TC_longlong, TC_null, TC_Object, TC_octet, TC_Principal, TC_short, TC_string, tc_table, TC_TypeCode, TC_ulong, TC_ulonglong, TC_ushort, TC_void, TC_wchar, TC_wstring |
Constructor Summary | |
RMIUtilDelegate()
Constructs a new RMIUtilDelegate. |
Method Summary | |
java.lang.Object |
copyObject(java.lang.Object obj,
org.omg.CORBA.ORB orb)
This method is used by local stubs to copy an actual parameter, result object or exception. |
java.lang.Object[] |
copyObjects(java.lang.Object[] obj_array,
org.omg.CORBA.ORB orb)
This method do the same as above on multiple objects,preserving sharing among these objects. |
javax.rmi.CORBA.ValueHandler |
createValueHandler()
This method returns a singleton instance of a class that implements the ValueHandler interface. |
java.lang.String |
getCodebase(java.lang.Class classe)
This method returns the codebase for the Class object classe as a
space-separated list of URLs. |
javax.rmi.CORBA.Tie |
getTie(java.rmi.Remote target)
This method returns 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._is_local() method,
except that it can throw a RemoteException. |
java.lang.Class |
loadClass(java.lang.String name,
java.lang.String code_base,
java.lang.ClassLoader context)
This method loads a java class of the provided name, using additional information passed in the code_base and context parameters. |
java.rmi.RemoteException |
mapSystemException(org.omg.CORBA.SystemException ex)
This method maps a CORBA system exception to a RemoteException |
java.lang.Object |
readAny(org.omg.CORBA.portable.InputStream in)
This method reads a GIOP any from the input stream inand unmarshals it as a java object. |
void |
registerTarget(javax.rmi.CORBA.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 class to maintain a table mapping
target objects back to their associated Ties. |
void |
unexportObject(java.rmi.Remote target)
This method deactivates an implementation object and remove 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)
This method is another similar utility method for used by stubs. |
void |
writeAny(org.omg.CORBA.portable.OutputStream out,
java.lang.Object object)
This method writes the java object object to the output stream
out in the form of a CORBA any. |
void |
writeRemoteObject(org.omg.CORBA.portable.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 RMIUtilDelegate()
Method Detail |
public java.rmi.RemoteException mapSystemException(org.omg.CORBA.SystemException ex)
mapSystemException
in interface javax.rmi.CORBA.UtilDelegate
ex
- a CORBA system exception.
public void writeAny(org.omg.CORBA.portable.OutputStream out, java.lang.Object object)
object
to the output stream
out
in the form of a CORBA any.
writeAny
in interface javax.rmi.CORBA.UtilDelegate
out
- a CORBA output stream;object
- a java object.public java.lang.Object readAny(org.omg.CORBA.portable.InputStream in)
readAny
in interface javax.rmi.CORBA.UtilDelegate
in
- a CORBA input stream.
public void writeRemoteObject(org.omg.CORBA.portable.OutputStream out, java.lang.Object obj)
writeRemoteObject
in interface javax.rmi.CORBA.UtilDelegate
out
- a CORBA output stream;obj
- an RMI/IDL object reference.public void writeAbstractObject(org.omg.CORBA.portable.OutputStream out, java.lang.Object obj)
writeAbstractObject
in interface javax.rmi.CORBA.UtilDelegate
out
- a CORBA output stream;obj
- an RMI/IDL abstract object.public void registerTarget(javax.rmi.CORBA.Tie tie, java.rmi.Remote target)
Util
class to maintain a table mapping
target objects back to their associated Ties.
registerTarget
in interface javax.rmi.CORBA.UtilDelegate
tie
- an RMI/IDL skeleton.target
- an RMI/IDL server implementation.public void unexportObject(java.rmi.Remote target)
unexportObject
in interface javax.rmi.CORBA.UtilDelegate
target
- an RMI/IDL server implementation.public javax.rmi.CORBA.Tie getTie(java.rmi.Remote target)
getTie
in interface javax.rmi.CORBA.UtilDelegate
target
- an RMI/IDL server implementation.
public javax.rmi.CORBA.ValueHandler createValueHandler()
createValueHandler
in interface javax.rmi.CORBA.UtilDelegate
public java.rmi.RemoteException wrapException(java.lang.Throwable obj)
wrapException
in interface javax.rmi.CORBA.UtilDelegate
obj
- an exception thrown by an implementation method.
public java.lang.Object copyObject(java.lang.Object obj, org.omg.CORBA.ORB orb) throws java.rmi.RemoteException
copyObject
in interface javax.rmi.CORBA.UtilDelegate
obj
- a parameter;orb
- a CORBA ORB;
java.rmi.RemoteException
- if something goes wrong.public java.lang.Object[] copyObjects(java.lang.Object[] obj_array, org.omg.CORBA.ORB orb) throws java.rmi.RemoteException
copyObjects
in interface javax.rmi.CORBA.UtilDelegate
obj_array
- an array of Java objects.orb
- a CORBA ORB.
java.rmi.RemoteException
- if something goes wrong.public boolean isLocal(javax.rmi.CORBA.Stub s) throws java.rmi.RemoteException
ObjectImpl._is_local()
method,
except that it can throw a RemoteException.
isLocal
in interface javax.rmi.CORBA.UtilDelegate
s
- a stub;
java.rmi.RemoteException
- if something goes wrong.public java.lang.String getCodebase(java.lang.Class classe)
classe
as a
space-separated list of URLs.
getCodebase
in interface javax.rmi.CORBA.UtilDelegate
classe
- a Class object.
public java.lang.Class loadClass(java.lang.String name, java.lang.String code_base, java.lang.ClassLoader context) throws java.lang.ClassNotFoundException
code_base
and context
parameters.
loadClass
in interface javax.rmi.CORBA.UtilDelegate
name
- the name of the class to load;code_base
- a code base indication;context
- a class loader indication;
java.lang.ClassNotFoundException
- if the class could not be found.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |