org.omg.PortableInterceptor

Interface PolicyFactoryOperations

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 {@link org.omg.CORBA.ORB#create_policy(int, Any)}.

See Also: ORB ORBInitInfoOperations

Method Summary
Policycreate_policy(int policy_type, Any policy_value)
Create and return the policy of the given type, having the given value.

Method Detail

create_policy

public Policy create_policy(int policy_type, Any policy_value)
Create and return the policy of the given type, having the given value.

Parameters: policy_type the type of the policy being created policy_value the value of the policy, wrapped in {@link Any}. Depending from the policy, the Any can hold various values, including complex data structures.

Returns: the created policy.