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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to