3 //=============================================================================
5 * @file ORT_Adapter_Factory_Impl.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
9 //=============================================================================
11 #ifndef TAO_ORT_ADAPTER_FACTORY_IMPL_H
12 #define TAO_ORT_ADAPTER_FACTORY_IMPL_H
14 #include /**/ "ace/pre.h"
16 #include "ace/Service_Config.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/ObjRefTemplate/ort_export.h"
23 #include "tao/PortableServer/ORT_Adapter_Factory.h"
24 #include "tao/Versioned_Namespace.h"
26 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
31 * @class ORT_Adapter_Factory_Impl
33 * @brief ORT_Adapter_Factory_Impl
35 * Class that creates instances of TAO::ORT_Adapter
36 * (one per POA). This is the derived class that contains the actual
39 class TAO_ORT_Export ORT_Adapter_Factory_Impl
40 : public ORT_Adapter_Factory
44 virtual TAO::ORT_Adapter
* create ();
46 /// Destroy an adapter that is created by this factory
47 virtual void destroy (TAO::ORT_Adapter
* adapter
);
49 /// Used to force the initialization of the code.
50 static int Initializer ();
54 static int TAO_Requires_ORTFactory_Initializer
=
55 TAO::ORT_Adapter_Factory_Impl::Initializer ();
57 TAO_END_VERSIONED_NAMESPACE_DECL
59 ACE_STATIC_SVC_DECLARE (ORT_Adapter_Factory_Impl
)
60 ACE_FACTORY_DECLARE (TAO_ORT
, ORT_Adapter_Factory_Impl
)
62 #define TAO_OBJREF_TEMPLATE_SAFE_INCLUDE
63 #include "tao/ObjRefTemplate/ObjectReferenceTemplateC.h"
64 #undef TAO_OBJREF_TEMPLATE_SAFE_INCLUDE
65 #include /**/ "ace/post.h"
67 #endif /* TAO_ORT_ADAPTER_FACTORY_IMPL_H */