Niclas Hedhman wrote:
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.
P.S. In place of a config override.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
