Class EventParserManager
java.lang.Object
es.kukenan.smartfi.events.common.spring.EventParserManager
This components maintains a Event Parser registry and publishes a method (see
findParser(JsonNode) to retrieve the proper parser for a
given json.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet all the known parsers.findParser(com.fasterxml.jackson.databind.JsonNode jsonNode) Get the parser that can be used to deserialize the given json.
-
Field Details
-
eventParsers
The known event parsers.
-
-
Constructor Details
-
EventParserManager
public EventParserManager()
-
-
Method Details
-
findParser
Get the parser that can be used to deserialize the given json.- Parameters:
jsonNode- the json to parse.- Returns:
- the first event parser that can deserialize the given json.
-
allParsers
Get all the known parsers.- Returns:
- all the parsers registeres at this instance.
-