org.openorb.orb.test.dynamic
Class DSITest.TargetImplPOA

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.PortableServer.DynamicImplementation
          extended by org.openorb.orb.test.dynamic.DSITest.TargetImplPOA
Enclosing class:
DSITest

public static class DSITest.TargetImplPOA
extends org.omg.PortableServer.DynamicImplementation

Servant implementation used for testing. This Servant extends the org.omg.PortableServer.DynamicImplementation class.

See Also:
DynamicImplementation

Constructor Summary
DSITest.TargetImplPOA(org.omg.CORBA.ORB orb)
          Constructor.
 
Method Summary
 java.lang.String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId)
          This operation returns the IDL interfaces that are implemented by the Servant.
 void invoke(org.omg.CORBA.ServerRequest request)
          This methos gets the invoked operation name (via request.operation() ).
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _get_interface, _is_a, _non_existent, _object_id, _orb, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSITest.TargetImplPOA

public DSITest.TargetImplPOA(org.omg.CORBA.ORB orb)
Constructor.

Parameters:
orb - The orb to use.
Method Detail

_all_interfaces

public java.lang.String[] _all_interfaces(org.omg.PortableServer.POA poa,
                                          byte[] objectId)
This operation returns the IDL interfaces that are implemented by the Servant. These are interfaces the Servant can be narrowed to and operations can be invoked from.

Specified by:
_all_interfaces in class org.omg.PortableServer.Servant
Parameters:
poa - The poa at which the servant is activated.
objectId - The object id of the servant.
Returns:
An array with all repository IDs of the object.

invoke

public void invoke(org.omg.CORBA.ServerRequest request)
This methos gets the invoked operation name (via request.operation() ). Depending on the operation name, the params are extracted from the request and are processed. Then depending on the params, either a new execption is created and thrown or the result is sent back.

Specified by:
invoke in class org.omg.PortableServer.DynamicImplementation
Parameters:
request - The request used for the invocation.