org.omg.PortableInterceptor
Interface PolicyFactoryOperations
- All Known Subinterfaces:
- PolicyFactory
public interface PolicyFactoryOperations
A service implementation can register policy factory during ORB initialization
for creating the service-specific policies. This factory then will be
invoked form ORB.create_policy(int, Any)
.
- See Also:
ORB.create_policy(int, org.omg.CORBA.Any)
,
ORBInitInfoOperations.register_policy_factory(int, org.omg.PortableInterceptor.PolicyFactory)
Method Summary |
Policy |
create_policy(int policy_type,
Any policy_value)
Create and return the policy of the given type, having the given value. |
create_policy
Policy create_policy(int policy_type,
Any policy_value)
throws PolicyError
- Create and return the policy of the given type, having the given value.
- Parameters:
policy_type
- the type of the policy being createdpolicy_value
- the value of the policy, wrapped in Any
.
Depending from the policy, the Any can hold various values,
including complex data structures.
- Returns:
- the created policy.
- Throws:
PolicyError