| 
                  VisiBroker for Java  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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 | 
|---|
Policy create_policy(int type,
                     Any value)
                     throws PolicyError
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().
type - CORBA::PolicyType specifying the type of policy being created.value - CORBA::Any containing data with which to construct the CORBA::Policy.
PolicyError - A PolicyError is thrown when there is a problem creating a policy
  | 
                 
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||