|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object_PolicyManagerLocalBase
org.jacorb.orb.policies.PolicyManager
public class PolicyManager
Implementation of the ORB-level policy management interface as per CORBA 2.6, p. 4-43 to 4-45: This PolicyManager has operations through which a set of Policies can be applied and the current overriding Policy settings can be obtained. Policies applied at the ORB level override any system defaults. The ORB's PolicyManager is obtained through an invocation of ORB::resolve_initial_references, specifying an identifier of "ORBPolicyManager."
Constructor Summary | |
---|---|
PolicyManager(org.jacorb.config.Configuration config)
public c'tor |
Method Summary | |
---|---|
org.omg.CORBA.Policy[] |
get_policy_overrides(int[] ts)
Returns a PolicyList containing the overridden Polices for the requested PolicyTypes. |
void |
set_policy_overrides(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add)
Modifies the current set of overrides with the requested list of Policy overrides. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolicyManager(org.jacorb.config.Configuration config)
Method Detail |
---|
public org.omg.CORBA.Policy[] get_policy_overrides(int[] ts)
ts
- a sequence of overridden policy types identifying the
policies that are to be retrieved.
public void set_policy_overrides(org.omg.CORBA.Policy[] policies, org.omg.CORBA.SetOverrideType set_add) throws org.omg.CORBA.InvalidPolicies
Invoking set_policy_overrides with an empty sequence of policies and a mode of SET_OVERRIDE removes all overrides from a PolicyManager. Only certain policies that pertain to the invocation of an operation at the client end can be overridden using this operation. Attempts to override any other policy will result in the raising of the CORBA::NO_PERMISSION exception. If the request would put the set of overriding policies for the target PolicyManager in an inconsistent state, no policies are changed or added, and the exception InvalidPolicies is raised. There is no evaluation of compatibility with policies set within other PolicyManagers.
policies
- a sequence of Policy objects that are to be
associated with the PolicyManager object.set_add
- whether the association is in addition to
(ADD_OVERRIDE) or as a replacement of (SET_OVERRIDE) any
existing overrides already associated with the PolicyManager
object. If the value of this parameter is SET_OVERRIDE, the
supplied policies completely replace all existing overrides
associated with the PolicyManager object. If the value of this
parameter is ADD_OVERRIDE, the supplied policies are added to
the existing overrides associated with the PolicyManager
object, except that if a supplied Policy object has the same
PolicyType value as an existing override, the supplied Policy
object replaces the existing override.
org.omg.CORBA.InvalidPolicies
- a list of indices identifying the
position in the input policies list that are occupied by
invalid policies
org.omg.CORBA.BAD_PARAM
- if the sequence contains two or more Policy
objects with the same PolicyType value, the operation raises
the standard sytem exception BAD_PARAM with standard minor code
30.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |