3 //=============================================================================
5 * @file Servant_Activator.h
7 * Defines a ServantActivator class.
9 * @author Irfan Pyarali
11 //=============================================================================
14 #include "tao/PortableServer/PortableServer.h"
15 #include "tao/PortableServer/ServantActivatorC.h"
16 #include "tao/LocalObject.h"
20 class ServantActivator
:
21 public virtual PortableServer::ServantActivator
,
22 public virtual ::CORBA::LocalObject
25 ServantActivator (CORBA::ORB_ptr orb
);
28 * This method is invoked by a POA with USE_SERVANT_MANAGER and
29 * RETAIN policies, whenever it receives a request for a test object
30 * that is not currently active.
32 PortableServer::Servant
incarnate (const PortableServer::ObjectId
&oid
,
33 PortableServer::POA_ptr poa
);
35 /// This method is invoked whenever a test object is deactivated.
36 void etherealize (const PortableServer::ObjectId
&oid
,
37 PortableServer::POA_ptr adapter
,
38 PortableServer::Servant servant
,
39 CORBA::Boolean cleanup_in_progress
,
40 CORBA::Boolean remaining_activations
);
43 /// A reference to the ORB.