Uses of Interface
org.apache.commons.configuration2.io.FileLocationStrategy
-
Packages that use FileLocationStrategy Package Description org.apache.commons.configuration2.builder This package contains the implementations of configuration builder classes used to create newConfiguration
objects.org.apache.commons.configuration2.io A package with classes related to I/O operations. -
-
Uses of FileLocationStrategy in org.apache.commons.configuration2.builder
Methods in org.apache.commons.configuration2.builder with parameters of type FileLocationStrategy Modifier and Type Method Description FileBasedBuilderParametersImpl
FileBasedBuilderParametersImpl. setLocationStrategy(FileLocationStrategy strategy)
T
FileBasedBuilderProperties. setLocationStrategy(FileLocationStrategy strategy)
Sets theFileLocationStrategy
for resolving the referenced file. -
Uses of FileLocationStrategy in org.apache.commons.configuration2.io
Classes in org.apache.commons.configuration2.io that implement FileLocationStrategy Modifier and Type Class Description class
AbsoluteNameLocationStrategy
A specialized implementation ofFileLocationStrategy
which checks whether the provided file name is already an absolute file name.class
BasePathLocationStrategy
A specialized implementation ofFileLocationStrategy
which tries to construct a file path from the locator's base path and file name.class
ClasspathLocationStrategy
A specializedFileLocationStrategy
implementation which searches for files on the class path.class
CombinedLocationStrategy
A specialized implementation of aFileLocationStrategy
which encapsulates an arbitrary number ofFileLocationStrategy
objects.class
FileSystemLocationStrategy
A specialized implementation ofFileLocationStrategy
which uses the passed inFileSystem
to locate a file.class
HomeDirectoryLocationStrategy
A specialized implementation ofFileLocationStrategy
which searches for files in the user's home directory or another special configurable directory.class
ProvidedURLLocationStrategy
A specialized implementation ofFileLocationStrategy
which checks whether a passed inFileLocator
already has a defined URL.Fields in org.apache.commons.configuration2.io declared as FileLocationStrategy Modifier and Type Field Description static FileLocationStrategy
FileLocatorUtils. DEFAULT_LOCATION_STRATEGY
Constant for the defaultFileLocationStrategy
.Methods in org.apache.commons.configuration2.io that return FileLocationStrategy Modifier and Type Method Description FileLocationStrategy
FileHandler. getLocationStrategy()
Returns theFileLocationStrategy
to be applied when accessing the associated file.FileLocationStrategy
FileLocator. getLocationStrategy()
Returns theFileLocationStrategy
to be used for locating the referenced file.Methods in org.apache.commons.configuration2.io that return types with arguments of type FileLocationStrategy Modifier and Type Method Description java.util.Collection<FileLocationStrategy>
CombinedLocationStrategy. getSubStrategies()
Returns a (unmodifiable) collection with the sub strategies managed by this object.Methods in org.apache.commons.configuration2.io with parameters of type FileLocationStrategy Modifier and Type Method Description FileLocator.FileLocatorBuilder
FileLocator.FileLocatorBuilder. locationStrategy(FileLocationStrategy strategy)
Specifies theFileLocationStrategy
to be used when the referenced file is to be located.void
FileHandler. setLocationStrategy(FileLocationStrategy strategy)
Sets theFileLocationStrategy
to be applied when accessing the associated file.Constructor parameters in org.apache.commons.configuration2.io with type arguments of type FileLocationStrategy Constructor Description CombinedLocationStrategy(java.util.Collection<? extends FileLocationStrategy> subs)
Creates a new instance ofCombinedLocationStrategy
and initializes it with the provided sub strategies.
-