Package org.alfresco.repo.config
Class ImmutableConfig
java.lang.Object
org.springframework.extensions.config.ConfigImpl
org.alfresco.repo.config.ImmutableConfig
- All Implemented Interfaces:
org.springframework.extensions.config.Config
public class ImmutableConfig
extends org.springframework.extensions.config.ConfigImpl
Extension of
ConfigImpl that protects all internal data when locked- Since:
- 4.1.5
- Author:
- Derek Hulley
-
Constructor Summary
ConstructorsConstructorDescriptionImmutableConfig(org.springframework.extensions.config.Config config) Make a read-only copy of the given configuration -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.extensions.config.ConfigElementgetConfigElement(String name) getConfigElementValue(String name) booleanhasConfigElement(String name) voidputConfigElement(org.springframework.extensions.config.ConfigElement configElement)
-
Constructor Details
-
ImmutableConfig
public ImmutableConfig(org.springframework.extensions.config.Config config) Make a read-only copy of the given configuration- Parameters:
config- the configuration to copy
-
-
Method Details
-
getConfigElement
- Specified by:
getConfigElementin interfaceorg.springframework.extensions.config.Config- Overrides:
getConfigElementin classorg.springframework.extensions.config.ConfigImpl
-
getConfigElementValue
- Specified by:
getConfigElementValuein interfaceorg.springframework.extensions.config.Config- Overrides:
getConfigElementValuein classorg.springframework.extensions.config.ConfigImpl
-
hasConfigElement
- Specified by:
hasConfigElementin interfaceorg.springframework.extensions.config.Config- Overrides:
hasConfigElementin classorg.springframework.extensions.config.ConfigImpl
-
getConfigElements
- Specified by:
getConfigElementsin interfaceorg.springframework.extensions.config.Config- Overrides:
getConfigElementsin classorg.springframework.extensions.config.ConfigImpl
-
putConfigElement
public void putConfigElement(org.springframework.extensions.config.ConfigElement configElement) - Overrides:
putConfigElementin classorg.springframework.extensions.config.ConfigImpl
-