Package io.quarkus.cli.plugin
Class PluginManagerUtil
- java.lang.Object
-
- io.quarkus.cli.plugin.PluginManagerUtil
-
public class PluginManagerUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description PluginManagerUtil(PluginManagerSettings settings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Pluginfrom(String location)Create aPluginfrom the specified location.StringgetName(String location)Get the name that corresponds the the specified location.StringgetName(Optional<io.quarkus.maven.dependency.GACTV> gactv, Optional<URL> url, Optional<Path> path)Get the name that corresponds the the specified locations.static PluginManagerUtilgetUtil()static PluginManagerUtilgetUtil(PluginManagerSettings settings)
-
-
-
Constructor Detail
-
PluginManagerUtil
public PluginManagerUtil(PluginManagerSettings settings)
-
-
Method Detail
-
getUtil
public static PluginManagerUtil getUtil(PluginManagerSettings settings)
-
getUtil
public static PluginManagerUtil getUtil()
-
from
public Plugin from(String location)
Create aPluginfrom the specified location.- Parameters:
the- location- Returns:
- the
Pluginthat corresponds to the location.
-
getName
public String getName(String location)
Get the name that corresponds the the specified location. The name is the filename (without the jar extension) of any of the specified gactv, url or path.- Parameters:
location- the location- Returns:
- the name.
-
getName
public String getName(Optional<io.quarkus.maven.dependency.GACTV> gactv, Optional<URL> url, Optional<Path> path)
Get the name that corresponds the the specified locations. The name is the filename (without the jar extension) of any of the specified gactv, url or path.- Parameters:
url- the urlpath- the pathgactv- the gactv- Returns:
- the name.
-
-