Methods Summary |
---|
public java.lang.String[] | _all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId)
return classData.getTypeIds() ;
|
public org.omg.CORBA.portable.OutputStream | _invoke(java.lang.String method, org.omg.CORBA.portable.InputStream _in, org.omg.CORBA.portable.ResponseHandler reply)
Method javaMethod = null ;
DynamicMethodMarshaller dmm = null;
try {
InputStream in = (InputStream) _in;
javaMethod = classData.getIDLNameTranslator().getMethod( method ) ;
if (javaMethod == null)
throw wrapper.methodNotFoundInTie( method,
target.getClass().getName() ) ;
dmm = pm.getDynamicMethodMarshaller( javaMethod ) ;
Object[] args = dmm.readArguments( in ) ;
Object result = javaMethod.invoke( target, args ) ;
OutputStream os = (OutputStream)reply.createReply() ;
dmm.writeResult( os, result ) ;
return os ;
} catch (IllegalAccessException ex) {
throw wrapper.invocationErrorInReflectiveTie( ex,
javaMethod.getName(),
javaMethod.getDeclaringClass().getName() ) ;
} catch (IllegalArgumentException ex) {
throw wrapper.invocationErrorInReflectiveTie( ex,
javaMethod.getName(),
javaMethod.getDeclaringClass().getName() ) ;
} catch (InvocationTargetException ex) {
// Unwrap the actual exception so that it can be wrapped by an
// UnknownException or thrown if it is a system exception.
// This is expected in the server dispatcher code.
Throwable thr = ex.getCause() ;
if (thr instanceof SystemException)
throw (SystemException)thr ;
else if ((thr instanceof Exception) &&
dmm.isDeclaredException( thr )) {
OutputStream os = (OutputStream)reply.createExceptionReply() ;
dmm.writeException( os, (Exception)thr ) ;
return os ;
} else
throw new UnknownException( thr ) ;
}
|
public void | deactivate()
try{
_poa().deactivate_object(_poa().servant_to_id(this));
} catch (org.omg.PortableServer.POAPackage.WrongPolicy exception){
// ignore
} catch (org.omg.PortableServer.POAPackage.ObjectNotActive exception){
// ignore
} catch (org.omg.PortableServer.POAPackage.ServantNotActive exception){
// ignore
}
|
public java.rmi.Remote | getTarget()
return target;
|
public org.omg.CORBA.ORB | orb()
return _orb();
|
public void | orb(org.omg.CORBA.ORB orb)
try {
ORB myORB = (ORB)orb ;
((org.omg.CORBA_2_3.ORB)orb).set_delegate(this);
} catch (ClassCastException e) {
throw wrapper.badOrbForServant( e ) ;
}
|
public void | setTarget(java.rmi.Remote target)
this.target = target;
if (target == null) {
classData = null ;
} else {
Class targetClass = target.getClass() ;
classData = pm.getClassData( targetClass ) ;
}
|
public org.omg.CORBA.Object | thisObject()
return _this_object();
|