Return-Path: Delivered-To: apmail-hivemind-user-archive@www.apache.org Received: (qmail 38032 invoked from network); 5 Oct 2008 01:29:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Oct 2008 01:29:54 -0000 Received: (qmail 43375 invoked by uid 500); 5 Oct 2008 01:29:53 -0000 Delivered-To: apmail-hivemind-user-archive@hivemind.apache.org Received: (qmail 43359 invoked by uid 500); 5 Oct 2008 01:29:52 -0000 Mailing-List: contact user-help@hivemind.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hivemind.apache.org Delivered-To: mailing list user@hivemind.apache.org Received: (qmail 43348 invoked by uid 99); 5 Oct 2008 01:29:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Oct 2008 18:29:52 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of edross15057@gmail.com designates 209.85.200.174 as permitted sender) Received: from [209.85.200.174] (HELO wf-out-1314.google.com) (209.85.200.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Oct 2008 01:28:48 +0000 Received: by wf-out-1314.google.com with SMTP id 24so2118718wfg.7 for ; Sat, 04 Oct 2008 18:29:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=mKp++KvkCJOxm3kZNVwZCB3Qb4/mV+DmIO0hnR1VKbc=; b=tK1MLeG3vD2/jmFzGxLVvF/e/6a+i7O2NJGVy6/MhEoufT8lN7MrGha7J8G+R9Nxh9 SxIrm7h9hygNITwAvguCA4jeEnWq8O7cDJPygb35H9kNPMP3xKLGnUrBZ2F5hb3Z5DX+ 8TdvDBmXGAp85I4v3/KfMBC+Z8HQe9usAVZ0s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=LX1CxiuTr7LWCX2tA17k6dZgerbZJBD80jZIYIOLcACBMAVLM8m+9QjmwtYd3Ameuo 3mr6ME6YSvEiZ2+cZOEa7eVTV8v8RqBxQ3WU8SRDsAAt27TjR9MWrr2WlaaXhnQi5lH9 fVMTSL3Gf1w6WxGjpzc+7GVCWGcq5jaO10yC8= Received: by 10.142.215.5 with SMTP id n5mr1124302wfg.42.1223170163268; Sat, 04 Oct 2008 18:29:23 -0700 (PDT) Received: by 10.142.51.1 with HTTP; Sat, 4 Oct 2008 18:29:23 -0700 (PDT) Message-ID: Date: Sat, 4 Oct 2008 21:29:23 -0400 From: "Ed Ross" To: user@hivemind.apache.org Subject: Re: Dozer and Hivemind Integration - injecting a list of string In-Reply-To: <19796513.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_31995_22992091.1223170163224" References: <19796513.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_31995_22992091.1223170163224 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline unsubscribe On Fri, Oct 3, 2008 at 8:07 AM, alina2 wrote: > > Hello, > i am new to hivemind and i wanted to integrate > http://dozer.sourceforge.net/ Dozer (a "Java Bean to Java Bean mapper") > to > the application i am working at. > I spent some time trying to figure out how to do this, so i post the > solution i found in case it turns out to be useful for someone else too (or > so it can be improved by others). > > interface="net.sf.dozer.util.mapping.MapperIF" /> > > > > > > > > > > > > > > > > > > > > > configuration-id="mappingFiles"/> > > > > > Cheers, > alina. > -- > View this message in context: > http://www.nabble.com/Dozer-and-Hivemind-Integration---injecting-a-list-of-string-tp19796513p19796513.html > Sent from the Hivemind - User mailing list archive at Nabble.com. > > -- Ed Ross edross15057@gmail.com ------=_Part_31995_22992091.1223170163224 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
unsubscribe

On Fri, Oct 3, 2008 at 8:07 AM, alina2 <aquereilhac@yahoo.es> wrote:

Hello,
        i am new to hivemind and i wanted to integrate
http://dozer.sourceforge.net/ Dozer  (a "Java Bean to Java Bean mapper") to
the application i am working at.
I spent some time trying to figure out how to do this, so i post the
solution i found in case it turns out to be useful for someone else too (or
so it can be improved by others).

  <service-point id="mapperService"
interface="net.sf.dozer.util.mapping.MapperIF" />

  <configuration-point id="mappingFiles">
         <schema>
             <element name="mappingFile">
                 <attribute name="value" required="true"/>
                 <rules>
                   <push-attribute attribute="value"/>
                   <invoke-parent method="addElement"/>
                 </rules>
               </element>
         </schema>
   </configuration-point>

   <contribution configuration-id="mappingFiles">
        <mappingFile value="dozerBeanMapping.xml" />
   </contribution>

     <implementation service-id="mapperService">
       <invoke-factory>
           <construct class="net.sf.dozer.util.mapping.DozerBeanMapper">
             <set-configuration property="mappingFiles"
configuration-id="mappingFiles"/>
           </construct>
         </invoke-factory>
     </implementation>

Cheers,
alina.
--
View this message in context: http://www.nabble.com/Dozer-and-Hivemind-Integration---injecting-a-list-of-string-tp19796513p19796513.html
Sent from the Hivemind - User mailing list archive at Nabble.com.




--
Ed Ross
edross15057@gmail.com
------=_Part_31995_22992091.1223170163224--