summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/Acceptor_Filter_Factory.h
blob: f408dba8b731ebcb39b50c06c88f853741cb4140 (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
// -*- C++ -*-

//=============================================================================
/**
 *  @file    Acceptor_Filter_Factory.h
 *
 *  Provides default acceptor filters for use by the POA.
 *
 *  @author  Yan Dai <dai_y@ociweb.com>
 *  @author  Phil Mesnier <mesnier_p@ociweb.com>
 */
//=============================================================================


#ifndef TAO_ACCEPTOR_FILTER_FACTORY_H
#define TAO_ACCEPTOR_FILTER_FACTORY_H

#include /**/ "ace/pre.h"

#include "portableserver_export.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "tao/Versioned_Namespace.h"
#include "tao/orbconf.h"

#include "ace/Service_Object.h"
#include "ace/Service_Config.h"

#if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

class TAO_POA_Manager;
class TAO_Acceptor_Filter;

/**
 * @class TAO_Acceptor_Filter_Factory
 *
 * @brief Default class for factories providing the endpoint acceptor
 *        filter objects.
 *
 * The TAO_Acceptor_Filter_Factory is a loadable service object. It exists
 * to allow external application of filters used to control the assembly of
 * object references and how endpoints are assigned.
 */
class TAO_PortableServer_Export TAO_Acceptor_Filter_Factory
  : public ACE_Service_Object
{
public:
  ~TAO_Acceptor_Filter_Factory() override = default;

  virtual TAO_Acceptor_Filter* create_object (TAO_POA_Manager& poamanager);

  /// Static initializer ensures the factory is loaded
  static int initialize ();
};


static int
TAO_Requires_Acceptor_Filter_Factory =
TAO_Acceptor_Filter_Factory::initialize ();

ACE_STATIC_SVC_DECLARE (TAO_Acceptor_Filter_Factory)
ACE_FACTORY_DECLARE (TAO_PortableServer, TAO_Acceptor_Filter_Factory)

TAO_END_VERSIONED_NAMESPACE_DECL

#endif /* #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)*/

#include /**/ "ace/post.h"

#endif /* TAO_ACCEPTOR_FILTER_FACTORY_H */