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 Summary

      Constructors 
      Constructor Description
      ImmutableConfig​(org.springframework.extensions.config.Config config)
      Make a read-only copy of the given configuration
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.extensions.config.ConfigElement getConfigElement​(java.lang.String name)  
      java.util.Map<java.lang.String,​org.springframework.extensions.config.ConfigElement> getConfigElements()  
      java.lang.String getConfigElementValue​(java.lang.String name)  
      boolean hasConfigElement​(java.lang.String name)  
      void putConfigElement​(org.springframework.extensions.config.ConfigElement configElement)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.lang.String name)
        Specified by:
        getConfigElement in interface org.springframework.extensions.config.Config
        Overrides:
        getConfigElement in class org.springframework.extensions.config.ConfigImpl
      • getConfigElementValue

        public java.lang.String getConfigElementValue​(java.lang.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​(java.lang.String name)
        Specified by:
        hasConfigElement in interface org.springframework.extensions.config.Config
        Overrides:
        hasConfigElement in class org.springframework.extensions.config.ConfigImpl
      • getConfigElements

        public java.util.Map<java.lang.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