ser = findBeanSerializer(config, type, beanDesc, property);
ser = findBeanSerializer(config, type, beanDesc, property);
/** * Main serializer constructor method. We will have to be careful * with respect to ordering of various method calls: essentially * we want to reliably figure out which classes are standard types, * and which are beans. The problem is that some bean Classes may * implement standard interfaces (say, {@link java.lang.Iterable}. */ @Override @SuppressWarnings("unchecked") public <T> JsonSerializer<T> createSerializer(Class<T> type) { // First, fast lookup for exact type: JsonSerializer<?> ser = findSerializerByLookup(type); if (ser == null) { // and then introspect for some safe (?) JDK types ser = findSerializerByPrimaryType(type); if (ser == null) { // But if no match, let's see if it might be a bean ser = findBeanSerializer(type); // if not, then fall back to other JDK types if (ser == null) { ser = findSerializerByAddonType(type); } } } return (JsonSerializer<T>) ser; }
ser = this.findBeanSerializer(type, config, beanDesc);
ser = this.findBeanSerializer(config, type, beanDesc, property);
ser = findBeanSerializer(config, type, beanDesc, property);
ser = findBeanSerializer(config, type, beanDesc, property);