TAO_PolicyFactory_Registry Class Reference

ORB-specific PortableInterceptor::PolicyFactory registry. More...

#include <PolicyFactory_Registry.h>

List of all members.

Public Types

typedef ACE_Map_Manager
< CORBA::PolicyType,
PortableInterceptor::PolicyFactory_ptr,
ACE_Null_Mutex
TABLE

Public Member Functions

 TAO_PolicyFactory_Registry (void)
 Constructor.
 ~TAO_PolicyFactory_Registry (void)
 Destructor. Releases duplicated PolicyFactory references.
void register_policy_factory (CORBA::PolicyType type, PortableInterceptor::PolicyFactory_ptr policy_factory)
CORBA::Policy_ptr create_policy (CORBA::PolicyType type, const CORBA::Any &value)
CORBA::Policy_ptr _create_policy (CORBA::PolicyType type)
bool factory_exists (CORBA::PolicyType &type) const

Private Attributes

TABLE factories_
 The table that maps policy type to policy factory.


Detailed Description

ORB-specific PortableInterceptor::PolicyFactory registry.

ORB-specific registry that contains all portable interceptor policy factories.


Member Typedef Documentation

The type of table that maps policy type to policy factory.

Note:
An ACE_Null_Mutex is used for this type since policy factories are only registered when CORBA::ORB_init() is called, at which a point a lock has already been acquired. In short, the table is only modified during ORB bootstrap-time.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_PolicyFactory_Registry::TAO_PolicyFactory_Registry ( void   ) 

Constructor.

TAO_PolicyFactory_Registry::~TAO_PolicyFactory_Registry ( void   ) 

Destructor. Releases duplicated PolicyFactory references.


Member Function Documentation

void TAO_PolicyFactory_Registry::register_policy_factory ( CORBA::PolicyType  type,
PortableInterceptor::PolicyFactory_ptr  policy_factory 
)

Register a PolicyFactory with the underlying PolicyFactory sequence. This method should only be called during ORB initialization.

CORBA::Policy_ptr TAO_PolicyFactory_Registry::create_policy ( CORBA::PolicyType  type,
const CORBA::Any &  value 
)

Construct a policy of the given type with the information contained in the CORBA::Any value.

CORBA::Policy_ptr TAO_PolicyFactory_Registry::_create_policy ( CORBA::PolicyType  type  ) 

Create an empty policy, usually to be filled in later by demarshaling.

bool TAO_PolicyFactory_Registry::factory_exists ( CORBA::PolicyType type  )  const

Check if a PolicyFactory corresponding to the given type, exists.


Member Data Documentation

The table that maps policy type to policy factory.


The documentation for this class was generated from the following files:

Generated on Thu Nov 27 05:22:17 2008 for TAO_PI by  doxygen 1.5.6