Acceptor_Filter_Factory.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    Acceptor_Filter_Factory.h
00006  *
00007  *  $Id: Acceptor_Filter_Factory.h 80928 2008-03-13 09:33:29Z johnnyw $
00008  *
00009  *  Provides default acceptor filters for use by the POA.
00010  *
00011  *  @author  Yan Dai <dai_y@ociweb.com>
00012  *  @author  Phil Mesnier <mesnier_p@ociweb.com>
00013  */
00014 //=============================================================================
00015 
00016 
00017 #ifndef TAO_ACCEPTOR_FILTER_FACTORY_H
00018 #define TAO_ACCEPTOR_FILTER_FACTORY_H
00019 
00020 #include /**/ "ace/pre.h"
00021 
00022 #include "portableserver_export.h"
00023 
00024 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00025 # pragma once
00026 #endif /* ACE_LACKS_PRAGMA_ONCE */
00027 
00028 #include "tao/Versioned_Namespace.h"
00029 #include "tao/orbconf.h"
00030 
00031 #include "ace/Service_Object.h"
00032 #include "ace/Service_Config.h"
00033 
00034 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
00035 
00036 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00037 
00038 class TAO_POA_Manager;
00039 class TAO_Acceptor_Filter;
00040 
00041 /**
00042  * @class TAO_Acceptor_Filter_Factory
00043  *
00044  * @brief Default class for factories providing the endpoint acceptor
00045  *        filter objects.
00046  *
00047  * The TAO_Acceptor_Filter_Factory is a loadable service object. It exists
00048  * to allow external application of filters used to control the assembly of
00049  * object references and how endpoints are assigned.
00050  */
00051 class TAO_PortableServer_Export TAO_Acceptor_Filter_Factory
00052   : public ACE_Service_Object
00053 {
00054 public:
00055   virtual ~TAO_Acceptor_Filter_Factory(void);
00056 
00057   virtual TAO_Acceptor_Filter* create_object (TAO_POA_Manager& poamanager);
00058 
00059   /// Static initializer ensures the factory is loaded
00060   static int initialize (void);
00061 };
00062 
00063 
00064 static int
00065 TAO_Requires_Acceptor_Filter_Factory =
00066 TAO_Acceptor_Filter_Factory::initialize ();
00067 
00068 TAO_END_VERSIONED_NAMESPACE_DECL
00069 
00070 ACE_STATIC_SVC_DECLARE (TAO_Acceptor_Filter_Factory)
00071 ACE_FACTORY_DECLARE (TAO_PortableServer, TAO_Acceptor_Filter_Factory)
00072 
00073 #endif /* #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)*/
00074 
00075 #include /**/ "ace/post.h"
00076 
00077 #endif /* TAO_ACCEPTOR_FILTER_FACTORY_H */

Generated on Tue Feb 2 17:40:53 2010 for TAO_PortableServer by  doxygen 1.4.7