Enum ImageBuilder

    • Method Detail

      • values

        public static ImageBuilder[] 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 (ImageBuilder c : ImageBuilder.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ImageBuilder 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 name
        NullPointerException - if the argument is null
      • getExtensionArtifact

        public Optional<io.quarkus.maven.dependency.ArtifactDependency> getExtensionArtifact​(org.apache.maven.project.MavenProject project)
        Get the ArtifactDependency matching the builder.
        Parameters:
        project - the target project
        Returns:
        the dependency wrapped in Optional.
      • getBuilder

        public static Optional<ImageBuilder> getBuilder​(String name,
                                                        org.apache.maven.project.MavenProject project)
        Get the image builder by name or the first one found in the project.
        Parameters:
        name - the name of the builder.
        Returns:
        the Optional builder matching the name, project.
      • getBuilder

        public static Optional<ImageBuilder> getBuilder​(String name,
                                                        Collection<ImageBuilder> projectBuilders)
        Get the image builder by name or the first one found in the project.
        Parameters:
        name - the name of the builder.
        Returns:
        the Optional builder matching the name, project.
      • getProjectBuilder

        public static Set<String> getProjectBuilder​(org.apache.maven.project.MavenProject project)
        Get teh image builder extensions found in the project.
        Parameters:
        the - project to search for extensions
        Returns:
        A set with the discovered extenions.