public static synchronized DecoderWrapper resolveDecoder ( String name , String eurekaAccept ) { EurekaAccept accept = EurekaAccept . fromString ( eurekaAccept ) ; switch ( accept ) { case compact : return getDecoder ( JacksonJsonMini . class ) ; case full : default : return getDecoder ( name ) ; } }
Resolve the decoder to use based on the specified decoder name as well as the specified eurekaAccept . The eurekAccept trumps the decoder name if the decoder specified is one that is not valid for use for the specified eurekaAccept .