public class PropertiesBuilderParametersImpl extends FileBasedBuilderParametersImpl implements PropertiesBuilderProperties<PropertiesBuilderParametersImpl>
A specialized parameter class for configuring PropertiesConfiguration
instances.
This class allows setting of some properties specific to properties
configuration, e.g. the layout object. By inheriting from
FileBasedBuilderParametersImpl
, basic properties and properties
related to file-based configurations are available, too.
This class is not thread-safe. It is intended that an instance is constructed
and initialized by a single thread during configuration of a
ConfigurationBuilder
.
RESERVED_PARAMETER_PREFIX
Constructor and Description |
---|
PropertiesBuilderParametersImpl() |
Modifier and Type | Method and Description |
---|---|
PropertiesBuilderParametersImpl |
setIncludesAllowed(boolean f)
Sets a flag whether include files are supported by the properties
configuration object.
|
PropertiesBuilderParametersImpl |
setIOFactory(PropertiesConfiguration.IOFactory factory)
Sets the
IOFactory to be used by the properties configuration
object. |
PropertiesBuilderParametersImpl |
setLayout(PropertiesConfigurationLayout layout)
Sets the layout object for the properties configuration object.
|
clone, fromMap, fromParameters, fromParameters, getFileHandler, getParameters, getReloadingDetectorFactory, getReloadingRefreshDelay, setBasePath, setEncoding, setFile, setFileName, setFileSystem, setLocationStrategy, setPath, setReloadingDetectorFactory, setReloadingRefreshDelay, setURL
fetchBeanHelper, fetchInterpolatorSpecification, fetchProperty, merge, setBeanHelper, setConfigurationDecoder, setConversionHandler, setDefaultLookups, setInterpolator, setListDelimiterHandler, setLogger, setParentInterpolator, setPrefixLookups, setSynchronizer, setThrowExceptionOnMissing, storeProperty
public PropertiesBuilderParametersImpl setIncludesAllowed(boolean f)
PropertiesBuilderProperties
setIncludesAllowed
in interface PropertiesBuilderProperties<PropertiesBuilderParametersImpl>
f
- the value of the flagpublic PropertiesBuilderParametersImpl setLayout(PropertiesConfigurationLayout layout)
PropertiesBuilderProperties
setLayout
in interface PropertiesBuilderProperties<PropertiesBuilderParametersImpl>
layout
- the PropertiesConfigurationLayout
object to be used
by the configurationpublic PropertiesBuilderParametersImpl setIOFactory(PropertiesConfiguration.IOFactory factory)
PropertiesBuilderProperties
IOFactory
to be used by the properties configuration
object. With this method a custom factory for input and output streams
can be set. This allows customizing the format of properties read or
written by the configuration. If no IOFactory
is provided, the
configuration uses a default one.setIOFactory
in interface PropertiesBuilderProperties<PropertiesBuilderParametersImpl>
factory
- the IOFactory
to be used by the configurationCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.