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

public class ConnectorParser extends Object
This class parses the connector YAML file and produces the corresponding JsonNode
  • Constructor Details

    • ConnectorParser

      public ConnectorParser()
  • Method Details

    • parse

      public com.fasterxml.jackson.databind.JsonNode parse(File connectorFile) throws IOException
      Parses the specified connector file.
      Parameters:
      connectorFile - The file to be parsed.
      Returns:
      A new JsonNode object.
      Throws:
      IOException - If an IO error occurs during deserialization or processing.
    • withNodeProcessor

      public static ConnectorParser withNodeProcessor(Path connectorDirectory)
      Creates a new ConnectorParser with extends and constants.
      Parameters:
      connectorDirectory - The directory where all the connectors are located.
      Returns:
      new instance of ConnectorParser