All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.spinnaker.keel.serialization.DeserializationContexts.kt Maven / Gradle / Ivy

package com.netflix.spinnaker.keel.serialization

import com.fasterxml.jackson.databind.DeserializationContext
import com.fasterxml.jackson.databind.ObjectMapper

internal val DeserializationContext.mapper: ObjectMapper
  // Such an intuitive API. ObjectMapper is the only thing that implements ObjectCodec but useful
  // methods like convertValue are not on that interface so we need to do a dirty type cast.
  get() = parser.codec as ObjectMapper

internal inline fun  DeserializationContext.instantiationException(cause: Throwable) =
  instantiationException(T::class.java, cause)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy