List<BeanPropertyWriter> props = findBeanProperties(config, beanDesc);
List<BeanPropertyWriter> props = findBeanProperties(config, beanDesc);
/** * Method that will try to construct a {@link BeanSerializer} for * given class. Returns null if no properties are found. */ protected JsonSerializer<?> findBeanSerializer(Class<?> type) { // First things first: we know some types are not beans... if (!canBeABeanType(type)) { return null; } // First: what properties are to be serializable? Collection<WritableBeanProperty> props = findBeanProperties(type); if (props == null || props.size() == 0) { // No properties, no serializer return null; } return new BeanSerializer(type, 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; }
List<BeanPropertyWriter> props = findBeanProperties(config, beanDesc); AnnotatedMethod anyGetter = beanDesc.findAnyGetter();
List<BeanPropertyWriter> props = findBeanProperties(config, beanDesc); AnnotatedMethod anyGetter = beanDesc.findAnyGetter();
List<BeanPropertyWriter> props = findBeanProperties(config, beanDesc);