@Override @SuppressWarnings("unchecked") public JsonSerializer<Object> createKeySerializer(SerializationConfig config, JavaType type, BeanProperty property) { // Minor optimization: to avoid constructing beanDesc, bail out if none registered if (!_factoryConfig.hasKeySerializers()) { return null; } // We should not need any member method info; at most class annotations for Map type BasicBeanDescription beanDesc = config.introspectClassAnnotations(type.getRawClass()); JsonSerializer<?> ser = null; // Only thing we have here are module-provided key serializers: for (Serializers serializers : _factoryConfig.keySerializers()) { ser = serializers.findSerializer(config, type, beanDesc, property); if (ser != null) { break; } } return (JsonSerializer<Object>) ser; }
@Override @SuppressWarnings("unchecked") public JsonSerializer<Object> createKeySerializer(SerializationConfig config, JavaType type, BeanProperty property) { // Minor optimization: to avoid constructing beanDesc, bail out if none registered if (!_factoryConfig.hasKeySerializers()) { return null; } // We should not need any member method info; at most class annotations for Map type BasicBeanDescription beanDesc = config.introspectClassAnnotations(type.getRawClass()); JsonSerializer<?> ser = null; // Only thing we have here are module-provided key serializers: for (Serializers serializers : _factoryConfig.keySerializers()) { ser = serializers.findSerializer(config, type, beanDesc, property); if (ser != null) { break; } } return (JsonSerializer<Object>) ser; }
@Override @SuppressWarnings("unchecked") public JsonSerializer<Object> createKeySerializer(SerializationConfig config, JavaType type, BeanProperty property) { // Minor optimization: to avoid constructing beanDesc, bail out if none registered if (!_factoryConfig.hasKeySerializers()) { return null; } // We should not need any member method info; at most class annotations for Map type BasicBeanDescription beanDesc = config.introspectClassAnnotations(type.getRawClass()); JsonSerializer<?> ser = null; // Only thing we have here are module-provided key serializers: for (Serializers serializers : _factoryConfig.keySerializers()) { ser = serializers.findSerializer(config, type, beanDesc, property); if (ser != null) { break; } } return (JsonSerializer<Object>) ser; }
@Override @SuppressWarnings("unchecked") public JsonSerializer<Object> createKeySerializer(SerializationConfig config, JavaType type, BeanProperty property) { // Minor optimization: to avoid constructing beanDesc, bail out if none registered if (!_factoryConfig.hasKeySerializers()) { return null; } // We should not need any member method info; at most class annotations for Map type BasicBeanDescription beanDesc = config.introspectClassAnnotations(type.getRawClass()); JsonSerializer<?> ser = null; // Only thing we have here are module-provided key serializers: for (Serializers serializers : _factoryConfig.keySerializers()) { ser = serializers.findSerializer(config, type, beanDesc, property); if (ser != null) { break; } } return (JsonSerializer<Object>) ser; }
@Override @SuppressWarnings("unchecked") public JsonSerializer<Object> createKeySerializer(SerializationConfig config, JavaType type, BeanProperty property) { // Minor optimization: to avoid constructing beanDesc, bail out if none registered if (!_factoryConfig.hasKeySerializers()) { return null; } // We should not need any member method info; at most class annotations for Map type BasicBeanDescription beanDesc = config.introspectClassAnnotations(type.getRawClass()); JsonSerializer<?> ser = null; // Only thing we have here are module-provided key serializers: for (Serializers serializers : _factoryConfig.keySerializers()) { ser = serializers.findSerializer(config, type, beanDesc, property); if (ser != null) { break; } } return (JsonSerializer<Object>) ser; }