Return-Path: X-Original-To: apmail-abdera-user-archive@www.apache.org Delivered-To: apmail-abdera-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7C7DC10C7B for ; Fri, 18 Oct 2013 13:45:55 +0000 (UTC) Received: (qmail 91103 invoked by uid 500); 18 Oct 2013 13:45:55 -0000 Delivered-To: apmail-abdera-user-archive@abdera.apache.org Received: (qmail 90920 invoked by uid 500); 18 Oct 2013 13:45:50 -0000 Mailing-List: contact user-help@abdera.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@abdera.apache.org Delivered-To: mailing list user@abdera.apache.org Received: (qmail 90901 invoked by uid 99); 18 Oct 2013 13:45:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2013 13:45:49 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nicolas.couturier@finn.no designates 80.91.34.67 as permitted sender) Received: from [80.91.34.67] (HELO mx2.schibsted-it.no) (80.91.34.67) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2013 13:45:45 +0000 Received: from sch-cas-ht-03.schibsted.no (unknown [192.168.110.145]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx2.schibsted-it.no (Postfix) with ESMTPS id 97A0613D2D1 for ; Fri, 18 Oct 2013 15:45:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=finn.no; s=default; t=1382103923; bh=TSL2sC9oyJVTTxFcFVp/n+7vEVI=; h=From:To:Subject:Date:Message-ID:In-Reply-To:Content-Type: Content-ID:Content-Transfer-Encoding:MIME-Version; b=BN96UEpZM3Z0eC8AP2y6LGwTy39GiXYVRXv5qQrN4MXxXV9sxE2BETion3Ms6w41G q//Jjp7nZCLeTDO5c+CFNXR/jkeHZ179oNWvpy8CDZcuDJ3RWZ70BBwjn8zjo49Fub NJ8dFZ2QM2/yzZm8bXFjU68xMu0H7oaDaLcGoNdQ= Received: from SCH-EMS-01.schibsted.no ([fe80::9916:2610:8749:8317]) by sch-cas-ht-03.schibsted.no ([::1]) with mapi id 14.03.0158.001; Fri, 18 Oct 2013 15:45:23 +0200 From: "Couturier, Nicolas" To: "user@abdera.apache.org" Subject: Re: [abdera-extensions-serializer:1.2-SNAPSHOT] @Extension annotated List<> Thread-Topic: [abdera-extensions-serializer:1.2-SNAPSHOT] @Extension annotated List<> Thread-Index: AQHOyk0ivM3vEONok0GwJ9nysEGy1Jn6e/mA Date: Fri, 18 Oct 2013 13:45:22 +0000 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: nb-NO X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.41.32] Content-Type: text/plain; charset="us-ascii" Content-ID: <08E7A8EE0C5D6E4FAFCDF7675A8BECAB@aftenposten.no> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hello again, Given that I received no response, I guess there are not that many people making use of this feature. So, I created a JIRA https://issues.apache.org/jira/browse/ABDERA-352 and a pull request https://github.com/apache/abdera (https://github.com/finn-no/abdera/commit/33d2de88e34a2ca5e3fdb6657d8d9dde8 fa78936) Hope this helps Best regards, Nicolas Couturier Den 16.10.13 10:53 skrev "Couturier, Nicolas" : >Hello, > >I am giving a try at abdera-extensions-serializer:1.2-SNAPSHOT so as to >map data contained within some Java objects into some atom XML. It is a >very useful feature and I am grateful to the abdera team for it. > >Recently, I tried serializing List-s of object to be serialized as atom >extensions. However, it seems that annotating my List accessor with >@Extension doesn't give me the expected result. Here is an annotated class >with the expected result as JavaDoc header: > > /** > * > * > * > * foo > * > * > * bar > * > * > * baz > * > * > */ > @Entry > public static final class EntryWithListOfSimpleExtensions { > @Extension(prefix=3DPREFIX, ns=3DNS, name=3DEXT_NAME, simple=3Dtru= e) > public List getSimpleExtensions() { > return Arrays.asList("foo", "bar", "baz"); > } > } > > >Here is the output I actually get: > > > > foo, bar, baz > > > >Would any of you guys know how the achieve this? (another annotation to >use?) > >Thanks in advance. > >Best regards, >Nicolas Couturier >