Class HomeDirectoryLocationStrategy.Builder
- java.lang.Object
-
- org.apache.commons.io.build.AbstractSupplier<T,B>
-
- org.apache.commons.configuration2.io.AbstractFileLocationStrategy.AbstractBuilder<HomeDirectoryLocationStrategy,HomeDirectoryLocationStrategy.Builder>
-
- org.apache.commons.configuration2.io.HomeDirectoryLocationStrategy.Builder
-
- All Implemented Interfaces:
org.apache.commons.io.function.IOSupplier<HomeDirectoryLocationStrategy>
- Enclosing class:
- HomeDirectoryLocationStrategy
public static class HomeDirectoryLocationStrategy.Builder extends AbstractFileLocationStrategy.AbstractBuilder<HomeDirectoryLocationStrategy,HomeDirectoryLocationStrategy.Builder>
Builds new instances ofHomeDirectoryLocationStrategy.- Since:
- 2.15.0
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HomeDirectoryLocationStrategyget()HomeDirectoryLocationStrategy.BuildersetEvaluateBasePath(boolean evaluateBasePath)Sets whether the base path should be evaluated.HomeDirectoryLocationStrategy.BuildersetHomeDirectory(java.lang.String homeDirectory)Sets the path to the home directory (may benull).-
Methods inherited from class org.apache.commons.configuration2.io.AbstractFileLocationStrategy.AbstractBuilder
setHosts, setHostsRegEx, setSchemes
-
-
-
-
Method Detail
-
get
public HomeDirectoryLocationStrategy get() throws java.io.IOException
- Throws:
java.io.IOException
-
setEvaluateBasePath
public HomeDirectoryLocationStrategy.Builder setEvaluateBasePath(boolean evaluateBasePath)
Sets whether the base path should be evaluated.- Parameters:
evaluateBasePath- whether the base path should be evaluated.- Returns:
thisinstance..
-
setHomeDirectory
public HomeDirectoryLocationStrategy.Builder setHomeDirectory(java.lang.String homeDirectory)
Sets the path to the home directory (may benull).- Parameters:
homeDirectory- the path to the home directory (may benull)- Returns:
thisinstance..
-
-