blob: 5ca9fab815e0bf58426e5c7b4d091f182fcf36b7 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
// -*- C++ -*-
//=============================================================================
/**
* @file Dynamic_Component_Servant_T.h
*
* $Id$
*
* This file contains the declaration of a mixin base class for
* the generated home servant class.
*
*/
//=============================================================================
#ifndef CIAO_DYNAMIC_COMPONENT_SERVANT_T_H
#define CIAO_DYNAMIC_COMPONENT_SERVANT_T_H
#include /**/ "ace/pre.h"
#include "Dynamic_Component_Servant_Base.h"
#include "CIAO_SwapExecC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/PortableServer/Key_Adapters.h"
#include "ace/Hash_Map_Manager_T.h"
namespace CIAO
{
template <typename COMP_SVNT>
class Dynamic_Component_Servant
: public virtual Dynamic_Component_Servant_Base
{
public:
// @@Jai, please add documentation for these methods.
Dynamic_Component_Servant (Components::EnterpriseComponent_ptr ec,
Components::CCMHome_ptr home,
const char* ins_name,
Home_Servant_Impl_Base *home_servant,
Session_Container *c);
virtual ~Dynamic_Component_Servant (void);
virtual PortableServer::Servant
create (PortableServer::ObjectId &oid
ACE_ENV_ARG_DECL_WITH_DEFAULTS);
virtual void destroy (PortableServer::ObjectId &oid);
virtual void update_destroy_count (void);
protected:
Components::EnterpriseComponent_var executor_;
CORBA::String_var ins_name_;
Home_Servant_Impl_Base *home_servant_;
Components::CCMHome_var home_;
// @@ Jai, please document why this is there.
ACE_Hash_Map_Manager_Ex<PortableServer::ObjectId,
COMP_SVNT *,
TAO_ObjectId_Hash,
ACE_Equal_To<PortableServer::ObjectId>,
ACE_SYNCH_MUTEX>
servant_map_;
// @@ Jai, please explain what this flag means?
bool component_removed_;
};
}
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "Dynamic_Component_Servant_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
#pragma implementation ("Dynamic_Component_Servant_T.cpp")
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
#include /**/ "ace/post.h"
#endif /* CIAO_DYNAMIC_COMPONENT_SERVANT_T_H */
|