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.ActionConfig;
08:
09: import java.util.Map;
10:
11: /**
12: * RuntimeConfiguration
13: *
14: * @author Jason Carreira
15: * Created Feb 25, 2003 10:56:02 PM
16: */
17: public interface RuntimeConfiguration {
18:
19: /**
20: * get the fully expanded ActionConfig for a specified namespace and (action) name
21: *
22: * @param namespace the namespace of the Action. if this is null, then the empty namespace, "", will be used
23: * @param name the name of the Action. may not be null.
24: * @return the requested ActionConfig or null if there was no ActionConfig associated with the specified namespace
25: * and name
26: */
27: ActionConfig getActionConfig(String namespace, String name);
28:
29: /**
30: * returns a Map of all the registered ActionConfigs. Again, these ActionConfigs are fully expanded so that any
31: * inherited interceptors, results, etc. will be included
32: *
33: * @return a Map of Map keyed by namespace and name respectively such that
34: * <pre>
35: * ActionConfig config = (ActionConfig)((Map)getActionConfigs.get(namespace)).get(name);
36: * </pre>
37: * should return a valid config for valid namespace/name pairs
38: */
39: Map getActionConfigs();
40: }
|