hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zachary Pinter <>
Subject Re: configuration
Date Wed, 02 Mar 2005 14:00:51 GMT
Continuing with this question,

Is it possible to do a hashmap type configuration element where
instead of looping through a list of objects that have key/value
attributes, you can just pass a key into a hashmap and get the value?

So, for single properties you can do get("filelocation") and have it
return an object?

Zachary Pinter

On Wed, 2 Mar 2005 14:34:12 +0100, Markus Wiederkehr
<> wrote:
> I would like to implement a service that requires some configuration.
> Amongst other things it needs to know the location of a certain file.
> So I have defined an element for this purpose:
> <element name="file">
>   <attribute name="location" required="true"/>
>   ...
> </element>
> It doesn't make sense to specify the file location more than once. But
> as far as I can see there is no way to prevent it:
> <contribution configuration-id="Test">
>   <file location="file1"/>
>   <file location="file2"/>
> </contribution>
> Using <configuration-point occurs="1"> does not help. I think it would
> be better to have something like <element occurs="1"> for situations
> like this.
> If Hivemind knew that a certain element can only occur once it would
> also be possible to inject the corresponding object directly into the
> service, instead of injecting a list of objects. Of course this would
> also require that the configuration schema defines only one element.
> Any thoughts?
> Markus
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message