1 21 package org.jacorb.orb.policies; 22 23 import org.omg.PortableInterceptor.*; 24 import org.omg.BiDirPolicy.*; 25 import org.omg.CORBA.*; 26 27 public class BiDirPolicyFactoryImpl 28 extends org.omg.CORBA.LocalObject  29 implements PolicyFactory 30 { 31 32 public BiDirPolicyFactoryImpl(ORB orb) 33 { 34 } 35 36 public Policy create_policy( int type, Any value ) 37 throws PolicyError 38 { 39 if( type != BIDIRECTIONAL_POLICY_TYPE.value ) 40 throw new PolicyError(); 41 42 return new BiDirPolicyImpl( BidirectionalPolicyValueHelper.extract( value )); 43 44 } 45 } 46 47 48 49 50 51 52 | Popular Tags |