GitHub user nicolasyanncouturier opened a pull request:
https://github.com/apache/abdera/pull/2
ABDERA-352 @Extension annotated List<>
Used the same system in BaseSerializer.writeExtensions() as in
BaseSerializer.writeElements() with calling BaseSerializer.toArray() and
looping through the values.
@Extension annotated List<> of object now get serialized into multiple
elements.
See
extensions/serializer/src/test/java/org/apache/abdera/test/ext/serializer/ExtensionAnnotationTest.java
for details.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/finn-no/abdera ABDERA-352
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/abdera/pull/2.patch
----
commit e510a210909ac1350dfe810ef88bf816246ae787
Author: niccoutu <[email protected]>
Date: 2013-10-14T11:54:33Z
fix for the @Extension problem from ABDERA-351
commit e3a9170f052624c18dc9c2d4f0b541dcd732d787
Author: niccoutu <[email protected]>
Date: 2013-10-16T10:08:03Z
cleaner extension serializer instantiation flow for ABDERA-351
commit 6117d1c24262c189aad9a2bffb02bd3e6131d519
Author: niccoutu <[email protected]>
Date: 2013-10-16T10:49:00Z
ABDERA-351 move @Extension annotation tests in its own test class
commit 33d2de88e34a2ca5e3fdb6657d8d9dde8fa78936
Author: niccoutu <[email protected]>
Date: 2013-10-16T10:15:36Z
ABDERA-352 serialized @Extension annotated List<> accessor as several
extension elements
----