Package net.n2oapp.properties.web
Class WebApplicationProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- net.n2oapp.properties.OverrideProperties
-
- net.n2oapp.properties.ExpressionBasedProperties
-
- net.n2oapp.properties.web.WebApplicationProperties
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>,org.springframework.beans.factory.Aware,org.springframework.web.context.ServletContextAware
public class WebApplicationProperties extends ExpressionBasedProperties implements org.springframework.web.context.ServletContextAware
Composite properties, with the scheme override: default -> build -> environment -> servlet- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebApplicationProperties.PropertyValue
-
Field Summary
-
Fields inherited from class java.util.Properties
defaults
-
-
Constructor Summary
Constructors Constructor Description WebApplicationProperties(String defaultPropertiesName, String buildPropertiesName, String environmentPropertiesName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanenvPropertiesIsExists()OverridePropertiesgetBuildProperties()OverridePropertiesgetDefaultProperties()ReloadablePropertiesgetEnvProperties()WebApplicationProperties.PropertyValuegetFullPropertyValue(String property)Получение значения свойства для все уровнейReloadablePropertiesgetServletProperties()booleanservletPropertiesIsExists()voidsetClasspathPackage(String packageName)voidsetEnvironment(org.springframework.core.env.ConfigurableEnvironment webAppEnvironment)voidsetFilesystemFolder(String folderName)voidsetServletContext(javax.servlet.ServletContext servletContext)-
Methods inherited from class net.n2oapp.properties.ExpressionBasedProperties
get, getProperty, setEvaluationContext
-
Methods inherited from class net.n2oapp.properties.OverrideProperties
contains, containsKey, containsValue, getBaseProperties, getCurrentLvlProperty, keys, setBaseProperties, size, stringPropertyNames, superGetProperty
-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, elements, entrySet, equals, forEach, getOrDefault, getProperty, hashCode, isEmpty, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, store, store, storeToXML, storeToXML, storeToXML, toString, values
-
-
-
-
Method Detail
-
setClasspathPackage
public void setClasspathPackage(String packageName)
-
setFilesystemFolder
public void setFilesystemFolder(String folderName)
-
setEnvironment
public void setEnvironment(org.springframework.core.env.ConfigurableEnvironment webAppEnvironment)
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
- Specified by:
setServletContextin interfaceorg.springframework.web.context.ServletContextAware
-
getServletProperties
public ReloadableProperties getServletProperties()
-
getEnvProperties
public ReloadableProperties getEnvProperties()
-
getBuildProperties
public OverrideProperties getBuildProperties()
-
getDefaultProperties
public OverrideProperties getDefaultProperties()
-
envPropertiesIsExists
public boolean envPropertiesIsExists()
-
servletPropertiesIsExists
public boolean servletPropertiesIsExists()
-
getFullPropertyValue
public WebApplicationProperties.PropertyValue getFullPropertyValue(String property)
Получение значения свойства для все уровней
-
-