public final class ReflectiveTie extends Servant implements Tie
| Constructor and Description |
|---|
ReflectiveTie(PresentationManager pm,
ORBUtilSystemException wrapper) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
_all_interfaces(POA poa,
byte[] objectId)
Used by the ORB to obtain complete type
information from the servant.
|
OutputStream |
_invoke(String method,
InputStream _in,
ResponseHandler reply)
Invoked by the ORB to dispatch a request to the servant.
|
void |
deactivate()
Deactivates the target object represented by this tie.
|
Remote |
getTarget()
Returns the target for this tie.
|
ORB |
orb()
Returns the ORB for this tie.
|
void |
orb(ORB orb)
Sets the ORB for this tie.
|
void |
setTarget(Remote target)
Called by
Util.registerTarget(javax.rmi.CORBA.Tie, java.rmi.Remote) to set the target
for this tie. |
Object |
thisObject()
Returns an object reference for the target object represented by
this tie.
|
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_objectpublic ReflectiveTie(PresentationManager pm, ORBUtilSystemException wrapper)
public String[] _all_interfaces(POA poa, byte[] objectId)
Servant_all_interfaces in class Servantpoa - POA with which the servant is associated.objectId - is the id corresponding to the object
associated with this servant.public void setTarget(Remote target)
TieUtil.registerTarget(javax.rmi.CORBA.Tie, java.rmi.Remote) to set the target
for this tie.public Remote getTarget()
Tiepublic Object thisObject()
TiethisObject in interface Tiepublic void deactivate()
Tiedeactivate in interface Tiepublic OutputStream _invoke(String method, InputStream _in, ResponseHandler reply)
InvokeHandler1. Determine correct method, and unmarshal parameters from InputStream.
2. Invoke method implementation.
3. If no user exception, create a normal reply using ResponseHandler.
4. If user exception occurred, create exception reply using ResponseHandler.
5. Marshal reply into OutputStream returned by ResponseHandler.
6. Return OutputStream to ORB.
_invoke in interface InvokeHandlermethod - The method name._in - The InputStream containing the marshalled arguments.reply - The ResponseHandler which the servant uses
to construct a proper replyOutputStream created by the
ResponseHandler which contains the marshalled replyCopyright © 2018 JBoss by Red Hat. All rights reserved.