1 22 package org.jboss.iiop.codebase; 23 24 import org.omg.CORBA.LocalObject ; 25 import org.omg.CORBA.Policy ; 26 27 34 public class CodebasePolicy 35 extends LocalObject 36 implements Policy 37 { 38 40 private final String codebase; 41 42 44 public static final int TYPE = 0x12345678; 47 49 public CodebasePolicy(String codebase) 50 { 51 this.codebase = codebase; 52 } 53 54 57 public String getCodebase() 58 { 59 return codebase; 60 } 61 62 64 67 public Policy copy() 68 { 69 return new CodebasePolicy(codebase); 70 } 71 72 75 public void destroy() 76 { 77 } 78 79 83 public int policy_type() 84 { 85 return TYPE; 86 } 87 88 public String toString() 89 { 90 return "CodebasePolicy[" + codebase + "]"; 91 } 92 93 } 94 | Popular Tags |