Use =default for skeleton copy constructor
[ACE_TAO.git] / TAO / tests / POA / On_Demand_Activation / Servant_Activator.h
blob1785cb9316c239bf106a09d326c3f697a6f28956
1 // -*- C++ -*-
3 //=============================================================================
4 /**
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"
18 #include "tao/ORB.h"
20 class ServantActivator :
21 public virtual PortableServer::ServantActivator,
22 public virtual ::CORBA::LocalObject
24 public:
25 ServantActivator (CORBA::ORB_ptr orb);
27 /**
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);
42 private:
43 /// A reference to the ORB.
44 CORBA::ORB_var orb_;