props = filterBeanProperties(config, beanDesc, props);
props = filterBeanProperties(config, beanDesc, props);
protected JsonSerializer<Object> constructBeanSerializer(SerializationConfig config, BasicBeanDescription beanDesc) { // First: any detectable (auto-detect, annotations) properties to serialize? List<BeanPropertyWriter> props = findBeanProperties(config, beanDesc); if (props == null || props.size() == 0) { // No properties, no serializer /* 27-Nov-2009, tatu: Except that as per [JACKSON-201], we are * ok with that as long as it has a recognized class annotation * (which may come from a mix-in too) */ if (beanDesc.hasKnownClassAnnotations()) { return BeanSerializer.createDummy(beanDesc.classDescribed()); } return null; } // Any properties to suppress? props = filterBeanProperties(config, beanDesc, props); // Do they need to be sorted in some special way? props = sortBeanProperties(config, beanDesc, props); BeanSerializer ser = new BeanSerializer(beanDesc.classDescribed(), props); // One more thing: need to gather view information, if any: ser = processViews(config, beanDesc, ser, props); return ser; }
} else { props = filterBeanProperties(config, beanDesc, props);
props = filterBeanProperties(config, beanDesc, props);
props = filterBeanProperties(config, beanDesc, props);