org.zeroexchange.web.configuration
Class SmartServletContextPropertiesConfigurer
java.lang.Object
org.springframework.core.io.support.PropertiesLoaderSupport
org.springframework.beans.factory.config.PropertyResourceConfigurer
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
org.zeroexchange.web.configuration.SmartServletContextPropertiesConfigurer
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered, org.springframework.web.context.ServletContextAware
public class SmartServletContextPropertiesConfigurer
- extends org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
- implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware
- Author:
- black
Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport |
logger, XML_FILE_EXTENSION |
Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Methods inherited from class org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer |
resolvePlaceholder, resolvePlaceholder, setContextOverride, setSearchContextAttributes |
Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
parseStringValue, processProperties, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName, setValueSeparator |
Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer |
convertProperties, convertProperty, convertPropertyValue, getOrder, postProcessBeanFactory, setOrder |
Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport |
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setProperties, setPropertiesArray, setPropertiesPersister |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SmartServletContextPropertiesConfigurer
public SmartServletContextPropertiesConfigurer()
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
- Specified by:
setResourceLoader
in interface org.springframework.context.ResourceLoaderAware
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
-
- Specified by:
setServletContext
in interface org.springframework.web.context.ServletContextAware
- Overrides:
setServletContext
in class org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
setLocations
public void setLocations(org.springframework.core.io.Resource[] locations)
-
- Overrides:
setLocations
in class org.springframework.core.io.support.PropertiesLoaderSupport
resolvePlaceholder
protected String resolvePlaceholder(String placeholder,
Properties props,
int systemPropertiesMode)
-
- Overrides:
resolvePlaceholder
in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
Copyright © 2013. All Rights Reserved.