#include <Policy_Validator.h>
Collaboration diagram for TAO_Policy_Validator:
Public Methods | |
TAO_Policy_Validator (TAO_ORB_Core &orb_core) | |
Constructor. More... | |
virtual | ~TAO_Policy_Validator (void) |
Destructor. More... | |
void | validate (TAO_Policy_Set &policies ACE_ENV_ARG_DECL) |
Validate that the policies in the specified set are consistent and legal. More... | |
void | merge_policies (TAO_Policy_Set &policies ACE_ENV_ARG_DECL) |
Add/merge policies. More... | |
CORBA::Boolean | legal_policy (CORBA::PolicyType type) |
Return whether the specified policy type is legal for the current configuration. More... | |
void | add_validator (TAO_Policy_Validator *validator) |
Adds a validator to the "chain of validators". More... | |
Protected Methods | |
virtual void | validate_impl (TAO_Policy_Set &policies ACE_ENV_ARG_DECL)=0 |
virtual void | merge_policies_impl (TAO_Policy_Set &policies ACE_ENV_ARG_DECL)=0 |
virtual CORBA::Boolean | legal_policy_impl (CORBA::PolicyType type)=0 |
Protected Attributes | |
TAO_ORB_Core & | orb_core_ |
Private Attributes | |
TAO_Policy_Validator * | next_ |
Static Private Attributes | |
TAO_Policy_Validator * | last_ = 0 |
This class was moved form the PortableServer library. The Portable Serever library used this abstraction to add policy validators to for the policies in the POA. This class seems so much useful for passing policy information between different loaded libraries.
|
Constructor.
|
|
Destructor.
|
|
Adds a validator to the "chain of validators".
The |
|
Return whether the specified policy type is legal for the current configuration. This is needed since the user can potentially specify policies that are unknown to an validate () routine, and these need to be caught. |
|
|
|
Add/merge policies.
|
|
|
|
Validate that the policies in the specified set are consistent and legal. Throw an appropriate exception if that is not the case. |
|
|
|
|
|
|
|
|