org.jboss.iiop
Class JBossUtilDelegate

java.lang.Object
  extended by org.jboss.iiop.JBossUtilDelegate
All Implemented Interfaces:
UtilDelegate

public class JBossUtilDelegate
extends Object
implements UtilDelegate

An implementation of UtilDelegate that overrides the loadClass(String, String, ClassLoader) method to use the input loader in preference to the ObjectInputStream#latestUserDefinedLoader. Install by setting -Djavax.rmi.CORBA.UtilClass=org.jboss.iiop.JBossUtilDelegate

Version:
$Revision: 85945 $
Author:
Scott.Stark@jboss.org

Constructor Summary
JBossUtilDelegate()
           
 
Method Summary
 Object copyObject(Object obj, ORB orb)
           
 Object[] copyObjects(Object[] obj, ORB orb)
           
 ValueHandler createValueHandler()
           
 String getCodebase(Class clz)
           
 Tie getTie(Remote target)
           
 boolean isLocal(Stub stub)
           
 Class loadClass(String className, String remoteCodebase, ClassLoader loader)
           
 RemoteException mapSystemException(SystemException ex)
           
 Object readAny(InputStream in)
           
 void registerTarget(Tie tie, Remote target)
           
 void unexportObject(Remote target)
           
 RemoteException wrapException(Throwable obj)
           
 void writeAbstractObject(OutputStream out, Object obj)
           
 void writeAny(OutputStream out, Object obj)
           
 void writeRemoteObject(OutputStream out, Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossUtilDelegate

public JBossUtilDelegate()
Method Detail

copyObject

public Object copyObject(Object obj,
                         ORB orb)
                  throws RemoteException
Specified by:
copyObject in interface UtilDelegate
Throws:
RemoteException

copyObjects

public Object[] copyObjects(Object[] obj,
                            ORB orb)
                     throws RemoteException
Specified by:
copyObjects in interface UtilDelegate
Throws:
RemoteException

createValueHandler

public ValueHandler createValueHandler()
Specified by:
createValueHandler in interface UtilDelegate

getCodebase

public String getCodebase(Class clz)
Specified by:
getCodebase in interface UtilDelegate

getTie

public Tie getTie(Remote target)
Specified by:
getTie in interface UtilDelegate

isLocal

public boolean isLocal(Stub stub)
                throws RemoteException
Specified by:
isLocal in interface UtilDelegate
Throws:
RemoteException

loadClass

public Class loadClass(String className,
                       String remoteCodebase,
                       ClassLoader loader)
                throws ClassNotFoundException
Specified by:
loadClass in interface UtilDelegate
Throws:
ClassNotFoundException

mapSystemException

public RemoteException mapSystemException(SystemException ex)
Specified by:
mapSystemException in interface UtilDelegate

readAny

public Object readAny(InputStream in)
Specified by:
readAny in interface UtilDelegate

registerTarget

public void registerTarget(Tie tie,
                           Remote target)
Specified by:
registerTarget in interface UtilDelegate

unexportObject

public void unexportObject(Remote target)
                    throws NoSuchObjectException
Specified by:
unexportObject in interface UtilDelegate
Throws:
NoSuchObjectException

wrapException

public RemoteException wrapException(Throwable obj)
Specified by:
wrapException in interface UtilDelegate

writeAbstractObject

public void writeAbstractObject(OutputStream out,
                                Object obj)
Specified by:
writeAbstractObject in interface UtilDelegate

writeAny

public void writeAny(OutputStream out,
                     Object obj)
Specified by:
writeAny in interface UtilDelegate

writeRemoteObject

public void writeRemoteObject(OutputStream out,
                              Object obj)
Specified by:
writeRemoteObject in interface UtilDelegate


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.