This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-configuration.git
commit 34b7cdf5a8065aba904def85d4c4fa065caeb114 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Sep 18 16:39:55 2020 -0400 Sort members. --- .../builder/FileBasedBuilderProperties.java | 64 +++++++++++----------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/src/main/java/org/apache/commons/configuration2/builder/FileBasedBuilderProperties.java b/src/main/java/org/apache/commons/configuration2/builder/FileBasedBuilderProperties.java index 4bba62b..8cfc64b 100644 --- a/src/main/java/org/apache/commons/configuration2/builder/FileBasedBuilderProperties.java +++ b/src/main/java/org/apache/commons/configuration2/builder/FileBasedBuilderProperties.java @@ -36,23 +36,20 @@ import org.apache.commons.configuration2.io.FileSystem; public interface FileBasedBuilderProperties<T> { /** - * Sets the refresh delay for reloading support + * Sets the base path of the associated {@code FileHandler}. * - * @param reloadingRefreshDelay the refresh delay (in milliseconds) + * @param path the base path * @return a reference to this object for method chaining */ - T setReloadingRefreshDelay(Long reloadingRefreshDelay); + T setBasePath(String path); /** - * Sets the factory for creating {@code ReloadingDetector} objects. With - * this method a custom factory for reloading detectors can be installed. - * Per default, a factory creating {@code FileHandlerReloadingDetector} - * objects is used. + * Sets the encoding of the associated {@code FileHandler}. * - * @param factory the {@code ReloadingDetectorFactory} + * @param enc the encoding * @return a reference to this object for method chaining */ - T setReloadingDetectorFactory(ReloadingDetectorFactory factory); + T setEncoding(String enc); /** * Sets the location of the associated {@code FileHandler} as a {@code File} @@ -64,60 +61,63 @@ public interface FileBasedBuilderProperties<T> T setFile(File file); /** - * Sets the location of the associated {@code FileHandler} as a {@code URL} - * object. + * Sets the file name of the associated {@code FileHandler}. * - * @param url the {@code URL} location + * @param name the file name * @return a reference to this object for method chaining */ - T setURL(URL url); + T setFileName(String name); /** - * Sets the location of the associated {@code FileHandler} as an absolute - * file path. + * Sets the {@code FileSystem} of the associated {@code FileHandler}. * - * @param path the path location + * @param fs the {@code FileSystem} * @return a reference to this object for method chaining */ - T setPath(String path); + T setFileSystem(FileSystem fs); /** - * Sets the file name of the associated {@code FileHandler}. + * Sets the {@code FileLocationStrategy} for resolving the referenced file. * - * @param name the file name + * @param strategy the {@code FileLocationStrategy} * @return a reference to this object for method chaining */ - T setFileName(String name); + T setLocationStrategy(FileLocationStrategy strategy); /** - * Sets the base path of the associated {@code FileHandler}. + * Sets the location of the associated {@code FileHandler} as an absolute + * file path. * - * @param path the base path + * @param path the path location * @return a reference to this object for method chaining */ - T setBasePath(String path); + T setPath(String path); /** - * Sets the {@code FileSystem} of the associated {@code FileHandler}. + * Sets the factory for creating {@code ReloadingDetector} objects. With + * this method a custom factory for reloading detectors can be installed. + * Per default, a factory creating {@code FileHandlerReloadingDetector} + * objects is used. * - * @param fs the {@code FileSystem} + * @param factory the {@code ReloadingDetectorFactory} * @return a reference to this object for method chaining */ - T setFileSystem(FileSystem fs); + T setReloadingDetectorFactory(ReloadingDetectorFactory factory); /** - * Sets the {@code FileLocationStrategy} for resolving the referenced file. + * Sets the refresh delay for reloading support * - * @param strategy the {@code FileLocationStrategy} + * @param reloadingRefreshDelay the refresh delay (in milliseconds) * @return a reference to this object for method chaining */ - T setLocationStrategy(FileLocationStrategy strategy); + T setReloadingRefreshDelay(Long reloadingRefreshDelay); /** - * Sets the encoding of the associated {@code FileHandler}. + * Sets the location of the associated {@code FileHandler} as a {@code URL} + * object. * - * @param enc the encoding + * @param url the {@code URL} location * @return a reference to this object for method chaining */ - T setEncoding(String enc); + T setURL(URL url); }