| java.lang.Object org.springframework.core.io.support.PropertiesLoaderSupport
All known Subclasses: org.springframework.beans.factory.config.PropertyResourceConfigurer, org.springframework.beans.factory.config.PropertiesFactoryBean,
PropertiesLoaderSupport | abstract public class PropertiesLoaderSupport (Code) | | Base class for JavaBean-style components that need to load properties
from one or more resources. Supports local properties as well, with
configurable overriding.
author: Juergen Hoeller since: 1.2.2 |
XML_FILE_EXTENSION | final public static String XML_FILE_EXTENSION(Code) | | |
logger | final protected Log logger(Code) | | Logger available to subclasses
|
mergeProperties | protected Properties mergeProperties() throws IOException(Code) | | Return a merged Properties instance containing both the
loaded properties and properties set on this FactoryBean.
|
setFileEncoding | public void setFileEncoding(String encoding)(Code) | | Set the encoding to use for parsing properties files.
Default is none, using the java.util.Properties
default encoding.
Only applies to classic properties files, not to XML files.
See Also: org.springframework.util.PropertiesPersister.load |
setIgnoreResourceNotFound | public void setIgnoreResourceNotFound(boolean ignoreResourceNotFound)(Code) | | Set if failure to find the property resource should be ignored.
True is appropriate if the properties file is completely optional.
Default is "false".
|
setLocalOverride | public void setLocalOverride(boolean localOverride)(Code) | | Set whether local properties override properties from files.
Default is "false": properties from files override local defaults.
Can be switched to "true" to let local properties override defaults
from files.
|
setLocation | public void setLocation(Resource location)(Code) | | Set a location of a properties file to be loaded.
Can point to a classic properties file or to an XML file
that follows JDK 1.5's properties XML format.
|
setLocations | public void setLocations(Resource[] locations)(Code) | | Set locations of properties files to be loaded.
Can point to classic properties files or to XML files
that follow JDK 1.5's properties XML format.
|
setProperties | public void setProperties(Properties properties)(Code) | | Set local properties, e.g. via the "props" tag in XML bean definitions.
These can be considered defaults, to be overridden by properties
loaded from files.
|
setPropertiesArray | public void setPropertiesArray(Properties[] propertiesArray)(Code) | | Set local properties, e.g. via the "props" tag in XML bean definitions,
allowing for merging multiple properties sets into one.
|
|
|