Class ModuleLookup.JavaFX

java.lang.Object
com.github.sormuras.bach.project.ModuleLookup.JavaFX
All Implemented Interfaces:
ModuleLookup
Enclosing interface:
ModuleLookup

public static class ModuleLookup.JavaFX extends Object implements ModuleLookup
Maps well-known JavaFX module names to their Maven Central artifacts.
  • Constructor Details

    • JavaFX

      public JavaFX(String version)
      Constructs a new module searcher with the given version.
      Parameters:
      version - the version
    • JavaFX

      public JavaFX(String version, String classifier)
      Constructs a new module searcher with the given version.
      Parameters:
      version - the version
      classifier - the classifier
  • Method Details

    • classifier

      public static String classifier()
      Returns:
      the classifier determined via the os.name system property
    • lookup

      public Optional<String> lookup(String module)
      Description copied from interface: ModuleLookup
      Returns an optional uniform resource identifier for the given module name.
      Specified by:
      lookup in interface ModuleLookup
      Parameters:
      module - the name of the module to lookup
      Returns:
      a string-representation of a uniform resource identifier wrapped in an optional object