Class ResolvePathRequest<T>
- java.lang.Object
-
- org.codehaus.plexus.languages.java.jpms.ResolvePathRequest<T>
-
public abstract class ResolvePathRequest<T> extends java.lang.Object
- Since:
- 1.0.0
- Author:
- Robert Scholte
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.nio.file.Path
getJdkHome()
T
getPathElement()
static ResolvePathRequest<java.io.File>
ofFile(java.io.File file)
static ResolvePathRequest<java.nio.file.Path>
ofPath(java.nio.file.Path path)
static ResolvePathRequest<java.lang.String>
ofString(java.lang.String string)
ResolvePathRequest<T>
setJdkHome(T jdkHome)
In case the JRE is Java 8 or before, this jdkHome is used to extract the module name.protected abstract java.nio.file.Path
toPath(T t)
-
-
-
Method Detail
-
ofFile
public static ResolvePathRequest<java.io.File> ofFile(java.io.File file)
-
ofPath
public static ResolvePathRequest<java.nio.file.Path> ofPath(java.nio.file.Path path)
-
ofString
public static ResolvePathRequest<java.lang.String> ofString(java.lang.String string)
-
toPath
protected abstract java.nio.file.Path toPath(T t)
-
getPathElement
public T getPathElement()
-
setJdkHome
public ResolvePathRequest<T> setJdkHome(T jdkHome)
In case the JRE is Java 8 or before, this jdkHome is used to extract the module name.- Parameters:
jdkHome
-- Returns:
- this request
-
getJdkHome
public java.nio.file.Path getJdkHome()
-
-