VisiBroker for Java

org.omg.PortableInterceptor
Interface PolicyFactoryOperations

All Known Subinterfaces:
PolicyFactory

public interface PolicyFactoryOperations

A portable ORB service implementation registers an instance of the PolicyFactory interface during ORB initialization in order to enable its policy types to be constructed using ORB::create_policy(). The POA is required to preserve any policy which is registered with ORBInitInfo in this manner.

Enables policy types to be constructed using ORB::create_policy. A portable ORB service implementation registers an instance of the PolicyFactory interface during ORB initialization in order to enable its policy types to be constructed using ORB::create_policy. The POA is required to preserve any policy which is registered with ORBInitInfo in this manner.


Method Summary
 Policy create_policy(int type, Any value)
          The ORB calls create_policy() on a registered PolicyFactory instance when ORB::create_policy() is called for the PolicyType under which the PolicyFactory has been registered.
 

Method Detail

create_policy

Policy create_policy(int type,
                     Any value)
                     throws PolicyError
The ORB calls create_policy() on a registered PolicyFactory instance when ORB::create_policy() is called for the PolicyType under which the PolicyFactory has been registered. The create_policy() method then returns an instance of the appropriate interface derived from CORBA::Policy whose value corresponds to the specified CORBA::Any. If it cannot, it will raise an exception as described for ORB::create_policy().

Parameters:
type - CORBA::PolicyType specifying the type of policy being created.
value - CORBA::Any containing data with which to construct the CORBA::Policy.
Throws:
PolicyError - A PolicyError is thrown when there is a problem creating a policy

Borland Software Corporation
http://www.borland.com
100 Enterprise Way
Scotts Valley, CA 95066
Voice: (831) 431-1000
pubsweb@borland.com

Read the latest documentation online