On Wednesday 14 April 2004 11:29, Justin Permar wrote:
I'm curious as to why a Configuration object is passed to a
Configurable instead of a general-purpose XML document? Is it
possible to use XML configuration for a component (maybe a
lifecycle extension that provides that capability)?
As David said, Configuration is an interface which is DOM-like, but intentionally made smaller/simpler so that other tree-like sources can be used.
You can create Configuration from XML and vice versa fairly easy with org.apache.avalon.framework.configuration (which sits in avalon/framework/impl), but you could also create Configurations by manually instantiate and populate, node by node, yourself.
Cheers
Niclas
Is there a way to provide a custom configuration builder in standard merlin or do I need to handle the lifecycle of such components myself?
For example, to configure excalibur datasources from LDAP.
-- Jon Elson-Green Senior Software Engineer/Systems Analyst
icemedia PO Box 1612, Milton Qld 4064, AUSTRALIA
Tel: +61 7 3511 5311 Fax: +61 7 3367 2644 [EMAIL PROTECTED]
Ground Floor, 8 Gardner Close, Milton, Qld 4064
To find out how award winning developer ICE Media creates targeted solutions for your organisation's e-business, multimedia and online learning requirements, visit http://www.icemedia.com.au/
****************************************************************************
Should you have received this message in error, please contact the sender
immediately and destroy any paper or electronic copies in your possession.
The information transmitted in this email may be considered confidential in
nature and is intended only for the person to whom it is addressed, and may
not be reviewed or re-transmitted by any other persons. It may not be reviewed
or re-transmitted by any other person. Views expressed in this email are those
of the individual sender, unless the sender specifically states otherwise. ICE Media Pty Ltd does not represent, warrant or guarantee that emails or
attachments sent are free of errors, viruses or interference.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
