org.springframework.extensions.config
Interface ConfigSection

All Known Implementing Classes:
ConfigSectionImpl

public interface ConfigSection

Definition of a config section.

Author:
gavinc

Method Summary
 String getCondition()
          Returns the condition to use to determine whether the config section this object represents is applicable.
 List<ConfigElement> getConfigElements()
          Returns the config elements that make up this config section
 String getEvaluator()
          Returns the name of an evaluator to use to determine whether the config section this object represents is applicable to the current lookup operation
 boolean isGlobal()
          Determines whether this config section is global
 boolean isReplace()
          Determines whether the config elements found inside this section should replace any previously found config elements with the same name
 

Method Detail

getEvaluator

String getEvaluator()
Returns the name of an evaluator to use to determine whether the config section this object represents is applicable to the current lookup operation

Returns:
Name of an evaluator held by the config service

getCondition

String getCondition()
Returns the condition to use to determine whether the config section this object represents is applicable. The condition is passed to the evaluator

Returns:
Condition to test

getConfigElements

List<ConfigElement> getConfigElements()
Returns the config elements that make up this config section

Returns:
List of config elements

isGlobal

boolean isGlobal()
Determines whether this config section is global

Returns:
true if it is global, false otherwise

isReplace

boolean isReplace()
Determines whether the config elements found inside this section should replace any previously found config elements with the same name

Returns:
true if config elements should replace existing ones, false otherwise


Copyright © 2009 SpringSource, Inc. All Rights Reserved.