Class MutablePropertyResolver

java.lang.Object
net.n2oapp.framework.sandbox.view.MutablePropertyResolver
All Implemented Interfaces:
org.springframework.core.env.PropertyResolver

public class MutablePropertyResolver extends Object implements org.springframework.core.env.PropertyResolver
Настроки на основе мапы с возможностью изменения
  • Constructor Details

    • MutablePropertyResolver

      public MutablePropertyResolver(Map<String,String> properties)
  • Method Details

    • containsProperty

      public boolean containsProperty(String key)
      Specified by:
      containsProperty in interface org.springframework.core.env.PropertyResolver
    • getProperty

      public String getProperty(String key)
      Specified by:
      getProperty in interface org.springframework.core.env.PropertyResolver
    • getProperty

      public String getProperty(String key, String defaultValue)
      Specified by:
      getProperty in interface org.springframework.core.env.PropertyResolver
    • getProperty

      public <T> T getProperty(String key, Class<T> targetType)
      Specified by:
      getProperty in interface org.springframework.core.env.PropertyResolver
    • getProperty

      public <T> T getProperty(String key, Class<T> targetType, T defaultValue)
      Specified by:
      getProperty in interface org.springframework.core.env.PropertyResolver
    • getRequiredProperty

      public String getRequiredProperty(String key) throws IllegalStateException
      Specified by:
      getRequiredProperty in interface org.springframework.core.env.PropertyResolver
      Throws:
      IllegalStateException
    • getRequiredProperty

      public <T> T getRequiredProperty(String key, Class<T> targetType) throws IllegalStateException
      Specified by:
      getRequiredProperty in interface org.springframework.core.env.PropertyResolver
      Throws:
      IllegalStateException
    • resolvePlaceholders

      public String resolvePlaceholders(String text)
      Specified by:
      resolvePlaceholders in interface org.springframework.core.env.PropertyResolver
    • resolveRequiredPlaceholders

      public String resolveRequiredPlaceholders(String text) throws IllegalArgumentException
      Specified by:
      resolveRequiredPlaceholders in interface org.springframework.core.env.PropertyResolver
      Throws:
      IllegalArgumentException
    • setProperty

      public void setProperty(String key, String value)