commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <joerg.schai...@scalaris.com>
Subject Re: [Configuration] Is there any way to save my complex bean in XML resource and use it later ?
Date Wed, 16 Feb 2011 10:32:47 GMT
Hi Moein,

Moein Enayati wrote:

> Dear all
> Hi
> 
> 
> Till now ,whenever I want to use Apache.Commons.Configuration API with an
> XML file , I’ve written down myBeans definition manually in XML resource.
> 
> But now I have a new demand to use complex beans with complex property
> types and the ability to save them (their signature) automatically in the
> XML resource.
> 
> 
> I’ve just find apache.commons.betwixt. BeanWriter() having the ability ,
> but it seems configuration-API has its own signature.
> 
> 
> Is there any way in Apache.commons.configuration  to save my beans in an
> xml file which is compatible with configuration ?

This is definitely out of scope for commons configuration. What you're 
looking for is a persistence layer that can turn a Java object into XML and 
restore it later. This is a classical task for JAXB or something like 
XStream.

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message