diff --git a/vertx-core/pom.xml b/vertx-core/pom.xml index 2578b0a9450..4ac3b1d6476 100644 --- a/vertx-core/pom.xml +++ b/vertx-core/pom.xml @@ -208,7 +208,6 @@ maven-compiler-plugin - 3.13.0 default-compile @@ -233,7 +232,6 @@ org.apache.maven.plugins maven-surefire-plugin - ${maven.surefire.plugin.version} false ${vertx.testUseModulePath} @@ -320,7 +318,6 @@ org.apache.maven.plugins maven-failsafe-plugin - 3.2.5 false diff --git a/vertx-core/src/main/java/io/vertx/core/spi/file/FileResolver.java b/vertx-core/src/main/java/io/vertx/core/spi/file/FileResolver.java index 701204f9b1d..d05556fc4b3 100644 --- a/vertx-core/src/main/java/io/vertx/core/spi/file/FileResolver.java +++ b/vertx-core/src/main/java/io/vertx/core/spi/file/FileResolver.java @@ -11,6 +11,9 @@ package io.vertx.core.spi.file; +import io.vertx.core.file.FileSystemOptions; +import io.vertx.core.file.impl.FileResolverImpl; + import java.io.Closeable; import java.io.File; import java.io.IOException; @@ -31,6 +34,16 @@ */ public interface FileResolver extends Closeable { + /** + * Create a file resolver. + * + * @param options the fs options + * @return the file resolver + */ + static FileResolver fileResolver(FileSystemOptions options) { + return new FileResolverImpl(options); + } + /** * Resolve the file for the specified {@code fileName}. *