Class JlinkResolver.Result

  • Enclosing class:
    JlinkResolver

    public static class JlinkResolver.Result
    extends java.lang.Object
    Holds the resolver results.
    • Constructor Summary

      Constructors 
      Constructor Description
      Result()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addToClasspath​(java.lang.String element)
      Sets whether the conf directory should be added to the classpath.
      java.lang.String generateClassPath()
      Generates the class path option to be passed to bin/java.
      void generateJlinkModulePath​(org.tentackle.maven.ToolRunner jlinkRunner)
      Generates the module-path option to be passed to jlink.
      void generateJlinkModules​(org.tentackle.maven.ToolRunner jlinkRunner)
      Generates the module names option passed to jlink.
      java.lang.String generateModulePath()
      Generates the module path option to be passed to bin/java.
      java.util.List<org.apache.maven.artifact.Artifact> getClassPath()
      Gets the artifacts to add to the class path explicitly.
      java.util.List<ModularArtifact> getJlinkModules()
      Gets the modules to be passed to jlink.
      java.util.List<ModularArtifact> getModulePath()
      Gets the modules to add to the module path explicitly.
      boolean isModular()
      Returns whether this is a modular application.
      boolean isPlainModular()
      Returns whether this is a plain modular application.
      Plain modular means that all requirements are met by real modules.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Result

        public Result()
    • Method Detail

      • getJlinkModules

        public java.util.List<ModularArtifact> getJlinkModules()
        Gets the modules to be passed to jlink.
        Returns:
        the modules
      • getModulePath

        public java.util.List<ModularArtifact> getModulePath()
        Gets the modules to add to the module path explicitly.
        Returns:
        the modules not passed to jlink
      • getClassPath

        public java.util.List<org.apache.maven.artifact.Artifact> getClassPath()
        Gets the artifacts to add to the class path explicitly.
        Returns:
        the class path
      • isModular

        public boolean isModular()
        Returns whether this is a modular application.
        Returns:
        true if modular
        See Also:
        isPlainModular()
      • isPlainModular

        public boolean isPlainModular()
        Returns whether this is a plain modular application.
        Plain modular means that all requirements are met by real modules. If not plain, the jlink tool is used to build a runtime image only and the application modules are placed on the module-path explicitly.
        Returns:
        true if plain modular, else mixed modular or classpath application
        See Also:
        isModular()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • addToClasspath

        public void addToClasspath​(java.lang.String element)
        Sets whether the conf directory should be added to the classpath.
        Parameters:
        element - the classpath element to add
      • generateJlinkModulePath

        public void generateJlinkModulePath​(org.tentackle.maven.ToolRunner jlinkRunner)
        Generates the module-path option to be passed to jlink.
        Parameters:
        jlinkRunner - the jlink tool runner
      • generateJlinkModules

        public void generateJlinkModules​(org.tentackle.maven.ToolRunner jlinkRunner)
        Generates the module names option passed to jlink.
        Parameters:
        jlinkRunner - the jlink tool runner
      • generateModulePath

        public java.lang.String generateModulePath()
        Generates the module path option to be passed to bin/java.
        Returns:
        the option, empty if no extra module path
      • generateClassPath

        public java.lang.String generateClassPath()
        Generates the class path option to be passed to bin/java.
        Returns:
        the option, empty if no extra class path