1 7 8 package com.sun.corba.se.impl.oa.poa; 9 10 import org.omg.CORBA.*; 11 import org.omg.PortableServer.*; 12 13 final class ServantRetentionPolicyImpl 14 extends org.omg.CORBA.LocalObject implements ServantRetentionPolicy { 15 16 public ServantRetentionPolicyImpl(ServantRetentionPolicyValue value) { 17 this.value = value; 18 } 19 20 public ServantRetentionPolicyValue value() { 21 return value; 22 } 23 24 public int policy_type() 25 { 26 return SERVANT_RETENTION_POLICY_ID.value ; 27 } 28 29 public Policy copy() { 30 return new ServantRetentionPolicyImpl(value); 31 } 32 33 public void destroy() { 34 value = null; 35 } 36 37 private ServantRetentionPolicyValue value; 38 39 public String toString() 40 { 41 return "ServantRetentionPolicy[" + 42 ((value.value() == ServantRetentionPolicyValue._RETAIN) ? 43 "RETAIN" : "NON_RETAIN" + "]") ; 44 } 45 } 46 | Popular Tags |