| Package | Description | 
|---|---|
| org.apache.commons.configuration2.builder | 
 
 This package contains the implementations of configuration builder
 classes used to create new  
Configuration objects. | 
| org.apache.commons.configuration2.io | 
 
 A package with classes related to I/O operations. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
T | 
FileBasedBuilderProperties.setLocationStrategy(FileLocationStrategy strategy)
Sets the  
FileLocationStrategy for resolving the referenced file. | 
FileBasedBuilderParametersImpl | 
FileBasedBuilderParametersImpl.setLocationStrategy(FileLocationStrategy strategy)  | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
AbsoluteNameLocationStrategy
 A specialized implementation of  
FileLocationStrategy which checks
 whether the provided file name is already an absolute file name. | 
class  | 
BasePathLocationStrategy
 A specialized implementation of  
FileLocationStrategy which tries to
 construct a file path from the locator's base path and file name. | 
class  | 
ClasspathLocationStrategy
 A specialized  
FileLocationStrategy implementation which searches for
 files on the class path. | 
class  | 
CombinedLocationStrategy
 A specialized implementation of a  
FileLocationStrategy which
 encapsulates an arbitrary number of FileLocationStrategy objects. | 
class  | 
FileSystemLocationStrategy
 A specialized implementation of  
FileLocationStrategy which uses the
 passed in FileSystem to locate a file. | 
class  | 
HomeDirectoryLocationStrategy
 A specialized implementation of  
FileLocationStrategy which searches
 for files in the user's home directory or another special configurable
 directory. | 
class  | 
ProvidedURLLocationStrategy
 A specialized implementation of  
FileLocationStrategy which checks
 whether a passed in FileLocator already has a defined URL. | 
| Modifier and Type | Field and Description | 
|---|---|
static FileLocationStrategy | 
FileLocatorUtils.DEFAULT_LOCATION_STRATEGY
Constant for the default  
FileLocationStrategy. | 
| Modifier and Type | Method and Description | 
|---|---|
FileLocationStrategy | 
FileLocator.getLocationStrategy()
Returns the  
FileLocationStrategy to be used for locating the
 referenced file. | 
FileLocationStrategy | 
FileHandler.getLocationStrategy()
Returns the  
FileLocationStrategy to be applied when accessing the
 associated file. | 
| Modifier and Type | Method and Description | 
|---|---|
Collection<FileLocationStrategy> | 
CombinedLocationStrategy.getSubStrategies()
Returns a (unmodifiable) collection with the sub strategies managed by
 this object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
FileLocator.FileLocatorBuilder | 
FileLocator.FileLocatorBuilder.locationStrategy(FileLocationStrategy strategy)
Specifies the  
FileLocationStrategy to be used when the
 referenced file is to be located. | 
void | 
FileHandler.setLocationStrategy(FileLocationStrategy strategy)
Sets the  
FileLocationStrategy to be applied when accessing the
 associated file. | 
| Constructor and Description | 
|---|
CombinedLocationStrategy(Collection<? extends FileLocationStrategy> subs)
Creates a new instance of  
CombinedLocationStrategy and
 initializes it with the provided sub strategies. | 
Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.