1 21 package org.jacorb.orb.policies; 22 23 import org.omg.CORBA.*; 24 import org.omg.Messaging.*; 25 26 public class RoutingPolicy extends _RoutingPolicyLocalBase 27 { 28 private RoutingTypeRange routing_range; 29 30 public RoutingPolicy (RoutingTypeRange routing_range) 31 { 32 this.routing_range = routing_range; 33 } 34 35 public RoutingPolicy (org.omg.CORBA.Any value) 36 { 37 this.routing_range = RoutingTypeRangeHelper.extract (value); 38 } 39 40 public RoutingTypeRange routing_range() 41 { 42 return routing_range; 43 } 44 45 public int policy_type() 46 { 47 return ROUTING_POLICY_TYPE.value; 48 } 49 50 public Policy copy() 51 { 52 RoutingTypeRange copy_range = 53 new RoutingTypeRange (routing_range.min, 54 routing_range.max); 55 return new RoutingPolicy (copy_range); 56 } 57 58 public void destroy() 59 { 60 } 61 62 } 63 | Popular Tags |