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 -- +---------//-------------------+ | http://www.bali.ac | | http://niclas.hedhman.org | +------//----------------------+ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
