KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > PortableInterceptor > PolicyFactoryOperations


1 package org.omg.PortableInterceptor;
2
3
4 /**
5 * org/omg/PortableInterceptor/PolicyFactoryOperations.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/org/omg/PortableInterceptor/Interceptors.idl
8 * Saturday, February 9, 2008 9:40:08 AM GMT
9 */

10
11
12 /**
13    * Enables policy types to be constructed using
14    * <code>CORBA.ORB.create_policy</code>.
15    * <p>
16    * A portable ORB service implementation registers an instance of the
17    * <code>PolicyFactory</code> interface during ORB initialization in order
18    * to enable its policy types to be constructed using
19    * <code>CORBA.ORB.create_policy</code>. The POA is required to preserve
20    * any policy which is registered with <code>ORBInitInfo</code> in this
21    * manner.
22    *
23    * @see ORBInitInfo#register_policy_factory
24    */

25 public interface PolicyFactoryOperations
26 {
27
28   /**
29      * Returns an instance of the appropriate interface derived from
30      * <code>CORBA.Policy</code> whose value corresponds to the
31      * specified any.
32      * <p>
33      * The ORB calls <code>create_policy</code> on a registered
34      * <code>PolicyFactory</code> instance when
35      * <code>CORBA.ORB.create_policy</code> is called for the
36      * <code>PolicyType</code> under which the <code>PolicyFactory</code> has
37      * been registered. The <code>create_policy</code> operation then
38      * returns an instance of the appropriate interface derived from
39      * <code>CORBA.Policy</code> whose value corresponds to the specified
40      * any. If it cannot, it shall throw an exception as described for
41      * <code>CORBA.ORB.create_policy</code>.
42      *
43      * @param type An int specifying the type of policy being created.
44      * @param value An any containing data with which to construct the
45      * <code>CORBA.Policy</code>.
46      * @return A <code>CORBA.Policy<code> object of the specified type and
47      * value.
48      */

49   org.omg.CORBA.Policy JavaDoc create_policy (int type, org.omg.CORBA.Any JavaDoc value) throws org.omg.CORBA.PolicyError JavaDoc;
50 } // interface PolicyFactoryOperations
51
Popular Tags