blob: db87624ce558aa97527c2044e7a2e9e9819fdab7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// -*- C++ -*-
//=============================================================================
/**
* @file Servant_Activator.h
*
* $Id$
*
* Defines a ServantActivator class.
*
*
* @author Irfan Pyarali
*/
//=============================================================================
#include "tao/PortableServer/PortableServer.h"
#include "tao/PortableServer/ServantActivatorC.h"
#include "tao/LocalObject.h"
#include "tao/ORB.h"
class ServantActivator :
public virtual PortableServer::ServantActivator,
public virtual ::CORBA::LocalObject
{
public:
ServantActivator (CORBA::ORB_ptr orb, ACE_thread_t thrid);
/**
* This method is invoked by a POA with USE_SERVANT_MANAGER and
* RETAIN policies, whenever it receives a request for a test object
* that is not currently active.
*/
PortableServer::Servant incarnate (const PortableServer::ObjectId &oid,
PortableServer::POA_ptr poa);
/// This method is invoked whenever a test object is deactivated.
void etherealize (const PortableServer::ObjectId &oid,
PortableServer::POA_ptr adapter,
PortableServer::Servant servant,
CORBA::Boolean cleanup_in_progress,
CORBA::Boolean remaining_activations);
private:
/// A reference to the ORB.
CORBA::ORB_var orb_;
ACE_thread_t thr_id_;
};
|