Class EnvCopy


  • public class EnvCopy
    extends Object
    Need a copy of the environment without the Enhanced property sources to avoid circular dependencies.
    • Constructor Summary

      Constructors 
      Constructor Description
      EnvCopy​(org.springframework.core.env.ConfigurableEnvironment environment)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAfter​(String relativePropertySourceName, org.springframework.core.env.PropertySource<?> propertySource)  
      void addBefore​(String relativePropertySourceName, org.springframework.core.env.PropertySource<?> propertySource)  
      void addFirst​(org.springframework.core.env.PropertySource<?> propertySource)  
      void addLast​(org.springframework.core.env.PropertySource<?> propertySource)  
      org.springframework.core.env.ConfigurableEnvironment get()  
      boolean isAllowed​(org.springframework.core.env.PropertySource<?> propertySource)  
      org.springframework.core.env.PropertySource<?> remove​(String name)  
      void replace​(String name, org.springframework.core.env.PropertySource<?> propertySource)  
    • Constructor Detail

      • EnvCopy

        public EnvCopy​(org.springframework.core.env.ConfigurableEnvironment environment)
    • Method Detail

      • isAllowed

        public boolean isAllowed​(org.springframework.core.env.PropertySource<?> propertySource)
      • addFirst

        public void addFirst​(org.springframework.core.env.PropertySource<?> propertySource)
      • addLast

        public void addLast​(org.springframework.core.env.PropertySource<?> propertySource)
      • addBefore

        public void addBefore​(String relativePropertySourceName,
                              org.springframework.core.env.PropertySource<?> propertySource)
      • addAfter

        public void addAfter​(String relativePropertySourceName,
                             org.springframework.core.env.PropertySource<?> propertySource)
      • replace

        public void replace​(String name,
                            org.springframework.core.env.PropertySource<?> propertySource)
      • remove

        public org.springframework.core.env.PropertySource<?> remove​(String name)
      • get

        public org.springframework.core.env.ConfigurableEnvironment get()