/** * Copied from the underlying Jackson implementation of BeanSerializer. * * Implementation has to check whether as-array serialization * is possible reliably; if (and only if) so, will construct * a {@link BeanAsArraySerializer}, otherwise will return this * serializer as is. */ @Override protected BeanSerializerBase asArraySerializer() { /* Can not: * * - have Object Id (may be allowed in future) * - have "any getter" * - have per-property filters */ if ((_objectIdWriter == null) && (_anyGetterWriter == null) && (_propertyFilterId == null) ) { return new BeanAsArraySerializer(this); } // already is one, so: return this; }
@Override protected BeanSerializerBase asArraySerializer() { /* Can not: * * - have Object Id (may be allowed in future) * - have any getter * */ if ((_objectIdWriter == null) && (_anyGetterWriter == null) && (_propertyFilterId == null) ) { return new BeanAsArraySerializer(this); } // already is one, so: return this; }
/** * Implementation has to check whether as-array serialization * is possible reliably; if (and only if) so, will construct * a {@link BeanAsArraySerializer}, otherwise will return this * serializer as is. */ @Override protected BeanSerializerBase asArraySerializer() { /* Can not: * * - have Object Id (may be allowed in future) * - have any getter * */ if ((_objectIdWriter == null) && (_anyGetterWriter == null) && (_propertyFilterId == null) ) { return new BeanAsArraySerializer(this); } // already is one, so: return this; }
/** * See {@see BeanSerializer#asArraySerializer} implementation. */ @Override protected BeanSerializerBase asArraySerializer() { if ((this._objectIdWriter == null) && (this._anyGetterWriter == null) && (this._propertyFilterId == null) ) { return new BeanAsArraySerializer(this); } return this; }
protected BeanSerializerBase asArraySerializer() { if ((this._objectIdWriter == null) && (this._anyGetterWriter == null) && (this._propertyFilterId == null)) return new BeanAsArraySerializer(this); return this; }