1 23 24 package com.sun.enterprise.config; 25 26 import java.util.ArrayList ; 27 28 import com.sun.enterprise.config.ConfigContextEvent; 30 32 80 public interface ConfigContext { 81 82 87 String getUrl(); 88 89 93 public ArrayList getConfigChangeList(); 94 95 98 public void resetConfigChangeList(); 99 100 101 102 105 public ConfigBean getRootConfigBean() throws ConfigException; 106 107 public void removeConfigChange(ConfigChange change); 108 109 123 public ConfigBean exactLookup(String xpath) throws ConfigException; 124 125 128 public ConfigBean[] lookup(String xpath) throws ConfigException; 129 130 137 public void flush(boolean overwrite) throws ConfigException; 138 139 142 public void flush() throws ConfigException; 143 144 149 public void refresh(boolean force) throws ConfigException; 150 151 154 public void refresh() throws ConfigException; 155 156 160 public Object clone(); 161 162 168 public void updateFromConfigChange(ConfigChange configChange) throws ConfigException; 169 170 177 public ArrayList updateFromConfigChange(ArrayList configChangeList) throws ConfigException; 178 179 180 189 public String getAttributeValue(String xpath, String attributeName); 190 191 197 public boolean getBooleanAttributeValue(String xpath, String attributeName); 198 199 203 public boolean isChanged(); 204 205 210 public boolean isFileChangedExternally(); 211 212 215 public void addConfigContextEventListener(ConfigContextEventListener ccel); 216 217 220 public void removeConfigContextEventListener(ConfigContextEventListener ccel); 221 222 225 public void cleanup(); 226 227 228 230 234 ConfigChange addToConfigChangeList(String xpath, String attrName, String oldValue, String newValue); 235 239 ConfigChange addToConfigChangeList(String xpath, String childXpath, String name, ConfigBean cb); 240 244 ConfigChange addToConfigChangeList(String xpath); 245 249 ConfigChange addToConfigChangeList(String xpath, String name, Object cb, Object [] cbArray); 250 251 254 void preChange(ConfigContextEvent ccce); 257 259 262 void postChange(ConfigContextEvent ccce); 265 } 267 | Popular Tags |