|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.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".
| 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 | |
Object |
copyObject(Object obj,
ORB orb)
This method is used by local stubs to copy an actual parameter, result object or exception. |
Object[] |
copyObjects(Object[] obj_array,
ORB orb)
This method do the same as above on multiple objects,preserving sharing among these objects. |
ValueHandler |
createValueHandler()
This method returns a singleton instance of a class that implements the ValueHandler interface. |
String |
getCodebase(Class classe)
This method returns the codebase for the Class object classe as a
space-separated list of URLs. |
Tie |
getTie(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(Stub s)
This method has the same semantics as the ObjectImpl._is_local() method,
except that it can throw a RemoteException. |
Class |
loadClass(String name,
String code_base,
ClassLoader context)
This method loads a java class of the provided name, using additional information passed in the code_base and context parameters. |
RemoteException |
mapSystemException(SystemException ex)
This method maps a CORBA system exception to a RemoteException |
Object |
readAny(InputStream in)
This method reads a GIOP any from the input stream inand unmarshals it as a java object. |
void |
registerTarget(Tie tie,
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(Remote target)
This method deactivates an implementation object and remove its associated Tie from the table maintained by the Util class. |
RemoteException |
wrapException(Throwable obj)
The wrapException method wraps an exception thrown by an implementation method. |
void |
writeAbstractObject(OutputStream out,
Object obj)
This method is another similar utility method for used by stubs. |
void |
writeAny(OutputStream out,
Object object)
This method writes the java object object to the output stream
out in the form of a CORBA any. |
void |
writeRemoteObject(OutputStream out,
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 RemoteException mapSystemException(SystemException ex)
mapSystemException in interface UtilDelegateex - a CORBA system exception.
public void writeAny(OutputStream out,
Object object)
object to the output stream
out in the form of a CORBA any.writeAny in interface UtilDelegateout - a CORBA output stream;object - a java object.public Object readAny(InputStream in)
readAny in interface UtilDelegatein - a CORBA input stream.
public void writeRemoteObject(OutputStream out,
Object obj)
writeRemoteObject in interface UtilDelegateout - a CORBA output stream;obj - an RMI/IDL object reference.
public void writeAbstractObject(OutputStream out,
Object obj)
writeAbstractObject in interface UtilDelegateout - a CORBA output stream;obj - an RMI/IDL abstract object.
public void registerTarget(Tie tie,
Remote target)
Util class to maintain a table mapping
target objects back to their associated Ties.registerTarget in interface UtilDelegatetie - an RMI/IDL skeleton.target - an RMI/IDL server implementation.public void unexportObject(Remote target)
unexportObject in interface UtilDelegatetarget - an RMI/IDL server implementation.public Tie getTie(Remote target)
getTie in interface UtilDelegatetarget - an RMI/IDL server implementation.public ValueHandler createValueHandler()
createValueHandler in interface UtilDelegatepublic RemoteException wrapException(Throwable obj)
wrapException in interface UtilDelegateobj - an exception thrown by an implementation method.
public Object copyObject(Object obj,
ORB orb)
throws RemoteException
copyObject in interface UtilDelegateobj - a parameter;orb - a CORBA ORB;RemoteException - if something goes wrong.
public Object[] copyObjects(Object[] obj_array,
ORB orb)
throws RemoteException
copyObjects in interface UtilDelegateobj_array - an array of Java objects.orb - a CORBA ORB.RemoteException - if something goes wrong.
public boolean isLocal(Stub s)
throws RemoteException
ObjectImpl._is_local() method,
except that it can throw a RemoteException.isLocal in interface UtilDelegates - a stub;RemoteException - if something goes wrong.public String getCodebase(Class classe)
classe as a
space-separated list of URLs.getCodebase in interface UtilDelegateclasse - a Class object.
public Class loadClass(String name,
String code_base,
ClassLoader context)
throws ClassNotFoundException
code_base and context parameters.loadClass in interface UtilDelegatename - the name of the class to load;code_base - a code base indication;context - a class loader indication;ClassNotFoundException - if the class could not be found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||