blob: 9d5b5421fa0c4e9595be4e9d3840174cf5e0b0a8 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.opensymphony.xwork2.config;
import com.opensymphony.xwork2.config.entities.ActionConfig;
import java.io.Serializable;
import java.util.Map;
/**
* RuntimeConfiguration
*
* @author Jason Carreira
* Created Feb 25, 2003 10:56:02 PM
*/
public interface RuntimeConfiguration extends Serializable {
/**
* get the fully expanded ActionConfig for a specified namespace and (action) name
*
* @param namespace the namespace of the Action. if this is null, then the empty namespace, "", will be used
* @param name the name of the Action. may not be null.
* @return the requested ActionConfig or null if there was no ActionConfig associated with the specified namespace
* and name
*/
ActionConfig getActionConfig(String namespace, String name);
/**
* returns a Map of all the registered ActionConfigs. Again, these ActionConfigs are fully expanded so that any
* inherited interceptors, results, etc. will be included
*
* @return a Map of Map keyed by namespace and name respectively such that
* <pre>
* ActionConfig config = (ActionConfig)((Map)getActionConfigs.get(namespace)).get(name);
* </pre>
* should return a valid config for valid namespace/name pairs
*/
Map<String, Map<String, ActionConfig>> getActionConfigs();
}