01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.xwork.config;
06:
07: import com.opensymphony.xwork.config.entities.PackageConfig;
08:
09: import java.util.Map;
10: import java.util.Set;
11:
12: /**
13: * XWork configuration.
14: *
15: * @author Mike
16: */
17: public interface Configuration {
18:
19: public void rebuildRuntimeConfiguration();
20:
21: PackageConfig getPackageConfig(String name);
22:
23: Set getPackageConfigNames();
24:
25: Map getPackageConfigs();
26:
27: /**
28: * The current runtime configuration. Currently, if changes have been made to the Configuration since the last
29: * time buildRuntimeConfiguration() was called, you'll need to make sure to.
30: *
31: * @return the current runtime configuration
32: */
33: RuntimeConfiguration getRuntimeConfiguration();
34:
35: void addPackageConfig(String name, PackageConfig packageConfig);
36:
37: /**
38: * Allow the Configuration to clean up any resources that have been used.
39: */
40: void destroy();
41:
42: void reload() throws ConfigurationException;
43:
44: void removePackageConfig(String name);
45: }
|