TAO_PI
2.0.8
|
ORB-specific PortableInterceptor::PolicyFactory registry. More...
#include <PolicyFactory_Registry.h>
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. |
ORB-specific PortableInterceptor::PolicyFactory registry.
ORB-specific registry that contains all portable interceptor policy factories.
typedef ACE_Map_Manager<CORBA::PolicyType, PortableInterceptor::PolicyFactory_ptr, ACE_Null_Mutex> TAO_PolicyFactory_Registry::TABLE |
The type of table that maps policy type to policy factory.
TAO_PolicyFactory_Registry::TAO_PolicyFactory_Registry | ( | void | ) |
Constructor.
TAO_PolicyFactory_Registry::~TAO_PolicyFactory_Registry | ( | void | ) |
Destructor. Releases duplicated PolicyFactory references.
CORBA::Policy_ptr TAO_PolicyFactory_Registry::_create_policy | ( | CORBA::PolicyType | type | ) | [virtual] |
Create an empty policy, usually to be filled in later by demarshaling.
Implements TAO::PolicyFactory_Registry_Adapter.
CORBA::Policy_ptr TAO_PolicyFactory_Registry::create_policy | ( | CORBA::PolicyType | type, |
const CORBA::Any & | value | ||
) | [virtual] |
Construct a policy of the given type with the information contained in the CORBA::Any value.
Implements TAO::PolicyFactory_Registry_Adapter.
bool TAO_PolicyFactory_Registry::factory_exists | ( | CORBA::PolicyType & | type | ) | const [virtual] |
Check if a PolicyFactory
corresponding to the given type, exists.
Implements TAO::PolicyFactory_Registry_Adapter.
void TAO_PolicyFactory_Registry::register_policy_factory | ( | CORBA::PolicyType | type, |
PortableInterceptor::PolicyFactory_ptr | policy_factory | ||
) | [virtual] |
Register a PolicyFactory with the underlying PolicyFactory sequence. This method should only be called during ORB initialization.
Implements TAO::PolicyFactory_Registry_Adapter.
TABLE TAO_PolicyFactory_Registry::factories_ [private] |
The table that maps policy type to policy factory.