Search in sources :

Example 1 with JsonDecoderKey

use of org.n52.svalbard.decode.JsonDecoderKey in project arctic-sea by 52North.

the class JSONDecoder method getDecoder.

private <T> Decoder<T, JsonNode> getDecoder(Class<T> type) throws DecodingException {
    JsonDecoderKey key = new JsonDecoderKey(type);
    Decoder<T, JsonNode> decoder = getDecoder(key);
    if (decoder == null) {
        throw new NoDecoderForKeyException(key);
    }
    return decoder;
}
Also used : NoDecoderForKeyException(org.n52.svalbard.decode.exception.NoDecoderForKeyException) JsonDecoderKey(org.n52.svalbard.decode.JsonDecoderKey) JsonNode(com.fasterxml.jackson.databind.JsonNode)

Aggregations

JsonNode (com.fasterxml.jackson.databind.JsonNode)1 JsonDecoderKey (org.n52.svalbard.decode.JsonDecoderKey)1 NoDecoderForKeyException (org.n52.svalbard.decode.exception.NoDecoderForKeyException)1