Class ConnectorParser
java.lang.Object
org.sentrysoftware.maven.metricshub.connector.parser.ConnectorParser
This class parses the connector YAML file and produces the corresponding
JsonNode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
Parses the specified connector file.static ConnectorParser
withNodeProcessor
(Path connectorDirectory) Creates a newConnectorParser
with 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
JsonNode
object. - Throws:
IOException
- If an IO error occurs during deserialization or processing.
-
withNodeProcessor
Creates a newConnectorParser
with extends and constants.- Parameters:
connectorDirectory
- The directory where all the connectors are located.- Returns:
- new instance of
ConnectorParser
-