Class ConnectorLibraryParser

java.lang.Object
org.sentrysoftware.maven.metricshub.connector.parser.ConnectorLibraryParser

public class ConnectorLibraryParser extends Object
This class parses the connectors that are located under the source directory then produces a map of JsonNode instances that need to be used by the underlying page producers.
  • Constructor Details

    • ConnectorLibraryParser

      public ConnectorLibraryParser()
  • Method Details

    • parse

      public Map<String,com.fasterxml.jackson.databind.JsonNode> parse(@NonNull @NonNull Path sourceDirectory) throws IOException
      Parse connectors located under the source directory
      Parameters:
      sourceDirectory - Source directory of the connectors.
      Returns:
      Map of JsonNode instances indexed by the connector ID (connectors map: key=connector-id, value=JsonNode)
      Throws:
      IOException - if the file does not exist