commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sravan Duggaraju <saaan...@gmail.com>
Subject Re: [Urgent] Digester and Configuration
Date Fri, 02 Dec 2005 14:32:35 GMT
Thanks you very much for your suggestions.
I decided to use Commons configuration for my application.Because i don't
wan't to import all the required beans where ever iam going to use the XML
Properties.

Thanks
SanDi


On 12/2/05, Simon Kitching <skitching@apache.org> wrote:
>
> On Thu, 2005-12-01 at 18:21 -0500, Sravan Duggaraju wrote:
> > Hi,
> > I am using lot of XML configuration files for my new application,And i
> was
> > searching for the tools to read the  structured properties.
> > I found two tools commons -->digester and configuration.
> >
> > 1)Which one is the appropriate tool to read the XmlConfiguration files.
> > 2)I did not find good examples(documentation) for Commons
> > configuration.Where can i get the examples?
>
> Digester is capable of creating and populating *problem domain* objects
> using the input xml. These objects can have real behaviour appropriate
> to the problem domain. And it means that applications can basically be
> written first, then "digester enabled" later without much (if any)
> change to the objects built from the input data.
>
> XmlConfiguration, as others have noted, loads data as some pool of
> information that the "real" objects can consult. The objects wishing to
> configure themselves need to be modified to explicitly *look* for their
> associated data. For many uses, of course, this is the simplest and most
> obvious approach.
>
> There is some overlap, however. Some users of Digester simply use the
> rules to populate objects with nothing but getters/setters on them which
> essentially makes this the same as using XmlConfiguration.
>
> Note that I'm very familiar with Digester but don't know much about the
> Configuration project or XmlConfiguration.
>
> Cheers,
>
> Simon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message