Class HomeDirectoryLocationStrategy.Builder
java.lang.Object
org.apache.commons.io.build.AbstractSupplier<HomeDirectoryLocationStrategy,HomeDirectoryLocationStrategy.Builder>
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 of
HomeDirectoryLocationStrategy.- Since:
- 2.15.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()setEvaluateBasePath(boolean evaluateBasePath) Sets whether the base path should be evaluated.setHomeDirectory(String homeDirectory) Sets the path to the home directory (may benull).Methods inherited from class org.apache.commons.configuration2.io.AbstractFileLocationStrategy.AbstractBuilder
setHosts, setHostsRegEx, setSchemesMethods inherited from class org.apache.commons.io.build.AbstractSupplier
asThisMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.io.function.IOSupplier
asSupplier, getUnchecked
-
Constructor Details
-
Builder
public Builder()Constructs a new instance.
-
-
Method Details
-
get
- Throws:
IOException
-
setEvaluateBasePath
Sets whether the base path should be evaluated.- Parameters:
evaluateBasePath- whether the base path should be evaluated.- Returns:
thisinstance..
-
setHomeDirectory
Sets the path to the home directory (may benull).- Parameters:
homeDirectory- the path to the home directory (may benull)- Returns:
thisinstance..
-