Class 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 Detail

      • 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 Detail

      • getConfigElement

        public org.springframework.extensions.config.ConfigElement getConfigElement​(String name)
        Specified by:
        getConfigElement in interface org.springframework.extensions.config.Config
        Overrides:
        getConfigElement in class org.springframework.extensions.config.ConfigImpl
      • getConfigElementValue

        public String getConfigElementValue​(String name)
        Specified by:
        getConfigElementValue in interface org.springframework.extensions.config.Config
        Overrides:
        getConfigElementValue in class org.springframework.extensions.config.ConfigImpl
      • hasConfigElement

        public boolean hasConfigElement​(String name)
        Specified by:
        hasConfigElement in interface org.springframework.extensions.config.Config
        Overrides:
        hasConfigElement in class org.springframework.extensions.config.ConfigImpl
      • getConfigElements

        public Map<String,​org.springframework.extensions.config.ConfigElement> getConfigElements()
        Specified by:
        getConfigElements in interface org.springframework.extensions.config.Config
        Overrides:
        getConfigElements in class org.springframework.extensions.config.ConfigImpl
      • putConfigElement

        public void putConfigElement​(org.springframework.extensions.config.ConfigElement configElement)
        Overrides:
        putConfigElement in class org.springframework.extensions.config.ConfigImpl