1 18 package org.apache.struts.config; 19 20 32 public interface ModuleConfig { 33 38 boolean getConfigured(); 39 40 43 ControllerConfig getControllerConfig(); 44 48 49 void setControllerConfig(ControllerConfig cc); 50 51 57 String getPrefix(); 58 59 66 public void setPrefix(String prefix); 67 68 72 String getActionFormBeanClass(); 73 74 81 void setActionFormBeanClass(String actionFormBeanClass); 82 83 86 String getActionMappingClass(); 87 88 94 void setActionMappingClass(String actionMappingClass); 95 96 105 void addActionConfig(ActionConfig config); 106 107 116 void addDataSourceConfig(DataSourceConfig config); 117 118 127 void addExceptionConfig(ExceptionConfig config); 128 129 138 void addFormBeanConfig(FormBeanConfig config); 139 140 143 String getActionForwardClass(); 144 145 151 void setActionForwardClass(String actionForwardClass); 152 153 162 void addForwardConfig(ForwardConfig config); 163 164 173 void addMessageResourcesConfig(MessageResourcesConfig config); 174 175 181 void addPlugInConfig(PlugInConfig plugInConfig); 182 183 189 ActionConfig findActionConfig(String path); 190 191 195 ActionConfig[] findActionConfigs(); 196 197 203 DataSourceConfig findDataSourceConfig(String key); 204 205 209 DataSourceConfig[] findDataSourceConfigs(); 210 211 217 ExceptionConfig findExceptionConfig(String type); 218 219 223 ExceptionConfig[] findExceptionConfigs(); 224 225 231 FormBeanConfig findFormBeanConfig(String name); 232 233 237 FormBeanConfig[] findFormBeanConfigs(); 238 239 245 ForwardConfig findForwardConfig(String name); 246 247 251 ForwardConfig[] findForwardConfigs(); 252 253 259 MessageResourcesConfig findMessageResourcesConfig(String key); 260 261 265 MessageResourcesConfig[] findMessageResourcesConfigs(); 266 267 271 PlugInConfig[] findPlugInConfigs(); 272 273 278 void freeze(); 279 280 288 void removeActionConfig(ActionConfig config); 289 290 298 void removeExceptionConfig(ExceptionConfig config); 299 300 308 void removeDataSourceConfig(DataSourceConfig config); 309 310 318 void removeFormBeanConfig(FormBeanConfig config); 319 320 328 void removeForwardConfig(ForwardConfig config); 329 330 338 void removeMessageResourcesConfig(MessageResourcesConfig config); 339 } 340 | Popular Tags |