Package nz.org.riskscape.config
Interface Config
public interface Config
Simple interface for raw application configuration values grouped in to sections, a la ini files, but abstracted a little.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Config
getAll()
getSection
(String name) Look up a particular section by name, returning empty if none exists
-
Field Details
-
EMPTY
A config object that contains nothing and came from nowhere. Useful for testing and other situations where you don't need a complete config object but need something that won't implode when used.
-
-
Method Details
-
empty
- Parameters:
rootLocation
- the root location for the empty config- Returns:
- an empty Config with the given root location
-
getRootLocation
URI getRootLocation() -
getSection
Look up a particular section by name, returning empty if none exists
-
getAll
List<ConfigSection> getAll()- Returns:
- a list of all the configuration sections
-