1 23 24 package com.sun.enterprise.deployment; 25 26 import java.util.*; 27 28 34 public class AdminObject extends Descriptor { 35 36 private String theInterface; 37 private String theClass; 38 private Set configProperties; 39 40 private boolean isDirty = false; 41 42 public AdminObject () { 43 this.configProperties = new OrderedSet(); 44 } 45 46 public AdminObject (String theInterface, String theClass) 47 { 48 this.theInterface = theInterface; 49 this.theClass = theClass; 50 this.configProperties = new OrderedSet(); 51 } 52 53 public String getAdminObjectInterface() 54 { 55 return this.theInterface; 56 } 57 58 public void setAdminObjectInterface (String intf) { 59 this.theInterface = intf; 60 } 61 62 public String getAdminObjectClass() 63 { 64 return this.theClass; 65 } 66 67 public void setAdminObjectClass (String cl) { 68 this.theClass = cl; 69 } 70 71 74 public Set getConfigProperties() 75 { 76 return configProperties; 77 } 78 79 82 public void addConfigProperty(EnvironmentProperty configProperty) 83 { 84 this.configProperties.add(configProperty); 85 this.setDirty(); 86 this.changed(); 87 } 88 89 92 public void removeConfigProperty(EnvironmentProperty configProperty) 93 { 94 this.configProperties.remove(configProperty); 95 this.setDirty(); 96 this.changed(); 97 } 98 99 public boolean isDirty() 100 { 101 return this.isDirty; 102 } 103 104 public void changed() 105 { 106 super.changed(); 107 } 108 109 private void setDirty() { 110 this.isDirty = true; 111 } 112 } 113 | Popular Tags |