Re: [spice-dev] ConfigurationAlchemist

Peter Donald <peter-4lf8KW9E9MLMqX/[email protected]> Mon, 14 Jun 2004 07:17:15 +1000
Newsgroups gmane.comp.java.spice.devel
Message-ID <[email protected]>
Mauro Talevi wrote:
> I've added a ConfigurationAlchemist to spice-alchemist, which works 
> along the same lines a LoggerAlchemist.
> 
> DNA and Avalon Configurations are very similar apart from the fact
> that DNA has getPath() and Avalon a getNamespace().
> 
> It not clear to me the correspondence/mapping between the two,
> so for the moment I've not implemented any.
> 
> Any insight?

No mapping between the two. DNAs path maps to the path to the root of 
the configuration tree and namespace refers to the xml namespace the 
element belongs to.

<foo:root>
   <baz:element1>
     <bar:element2>
       <baz:element3/>
     </bar:element2>
   </baz:element1>
</foo:root>

Consider element3 it has a path of "/element1/element2" and a namespace 
of "baz"

--
Cheers,

Peter Donald
He strains to hear a whisper who refuses to hear a shout.


------------------------------
spice dev mailing list
[email protected] to post
dev-unsubscribe-kYqEwUbZbpqxIXFVlbCvtR2eb7JE58TQ@public.gmane.org to unsubscribe