public class ImmutableConfig
extends org.springframework.extensions.config.ConfigImpl
ConfigImpl
that protects all internal data when lockedConstructor and Description |
---|
ImmutableConfig(org.springframework.extensions.config.Config config)
Make a read-only copy of the given configuration
|
Modifier and Type | Method and Description |
---|---|
org.springframework.extensions.config.ConfigElement |
getConfigElement(String name) |
Map<String,org.springframework.extensions.config.ConfigElement> |
getConfigElements() |
String |
getConfigElementValue(String name) |
boolean |
hasConfigElement(String name) |
void |
putConfigElement(org.springframework.extensions.config.ConfigElement configElement) |
public ImmutableConfig(org.springframework.extensions.config.Config config)
config
- the configuration to copypublic org.springframework.extensions.config.ConfigElement getConfigElement(String name)
getConfigElement
in interface org.springframework.extensions.config.Config
getConfigElement
in class org.springframework.extensions.config.ConfigImpl
public String getConfigElementValue(String name)
getConfigElementValue
in interface org.springframework.extensions.config.Config
getConfigElementValue
in class org.springframework.extensions.config.ConfigImpl
public boolean hasConfigElement(String name)
hasConfigElement
in interface org.springframework.extensions.config.Config
hasConfigElement
in class org.springframework.extensions.config.ConfigImpl
public Map<String,org.springframework.extensions.config.ConfigElement> getConfigElements()
getConfigElements
in interface org.springframework.extensions.config.Config
getConfigElements
in class org.springframework.extensions.config.ConfigImpl
public void putConfigElement(org.springframework.extensions.config.ConfigElement configElement)
putConfigElement
in class org.springframework.extensions.config.ConfigImpl
Copyright © 2005–2017 Alfresco Software. All rights reserved.