Class ConnectorParser
java.lang.Object
org.metricshub.maven.plugin.connector.parser.ConnectorParser
This class parses the connector YAML file and produces the corresponding
JsonNode-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodeParses the specified connector file.static ConnectorParserwithNodeProcessor(Path connectorDirectory) Creates a newConnectorParserwith extends and constants.
-
Constructor Details
-
ConnectorParser
public ConnectorParser()
-
-
Method Details
-
parse
Parses the specified connector file.- Parameters:
connectorFile- The file to be parsed.- Returns:
- A new
JsonNodeobject. - Throws:
IOException- If an IO error occurs during deserialization or processing.
-
withNodeProcessor
Creates a newConnectorParserwith extends and constants.- Parameters:
connectorDirectory- The directory where all the connectors are located.- Returns:
- new instance of
ConnectorParser
-