Package io.quarkus.maven
Enum Deployer
- java.lang.Object
-
- java.lang.Enum<Deployer>
-
- io.quarkus.maven.Deployer
-
- All Implemented Interfaces:
Serializable,Comparable<Deployer>
public enum Deployer extends Enum<Deployer>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description kindknativekubernetesminikubeopenshift
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<Deployer>getDeployer(org.apache.maven.project.MavenProject project)Get the deployer by name or the first one found in the project.StringgetExtension()Optional<io.quarkus.maven.dependency.ArtifactDependency>getExtensionArtifact(org.apache.maven.project.MavenProject project)Get theArtifactDependencymatching the builder.static Set<String>getProjecDeployer(org.apache.maven.project.MavenProject project)Get teh deployer extensions found in the project.static Set<String>getProjecDeployers(List<org.apache.maven.model.Dependency> dependencies)Get the deployer extensions found in the project.String[]getRequiresOneOf()static DeployervalueOf(String name)Returns the enum constant of this type with the specified name.static Deployer[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Deployer[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Deployer c : Deployer.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Deployer valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getExtension
public String getExtension()
-
getRequiresOneOf
public String[] getRequiresOneOf()
-
getExtensionArtifact
public Optional<io.quarkus.maven.dependency.ArtifactDependency> getExtensionArtifact(org.apache.maven.project.MavenProject project)
Get theArtifactDependencymatching the builder.- Parameters:
project- the target project- Returns:
- the dependency wrapped in
Optional.
-
getDeployer
public static Optional<Deployer> getDeployer(org.apache.maven.project.MavenProject project)
Get the deployer by name or the first one found in the project.- Returns:
- the
Optionalbuilder matching the name, project.
-
getProjecDeployer
public static Set<String> getProjecDeployer(org.apache.maven.project.MavenProject project)
Get teh deployer extensions found in the project.- Parameters:
the- project to search for extensions- Returns:
- A set with the discovered extenions.
-
-