You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Stanczak Group <ju...@stanczakgroup.com> on 2005/07/11 13:39:18 UTC

Configuration Points

I'm trying to create a config point that creates a map of strings, so I
can access them by their key values. How do I do this, I'm not
completely understanding config points. Here's what I have from the
on-line examples:

<configuration-point id="Config">
    <schema>
        <element name="cfg" key-attribute="key">
            <attribute name="key"/>
            <attribute name="value" required="true"/>
        </element>
    </schema>
</configuration-point>

<contribution configuration-id="Config">
  <cfg key="key1" value="Poopieeeeeeeeeeeeeeeee"/>
  <cfg key="key2" value="value2"/>
</contribution>

I think I understand how config points work, but I'm not completely
certain. The above seems to inject fine, but map is empty. Showing a
size of zero. I'm not even sure I'm using them properly in context of
good HiveMind programming practices. I was thinking of just creating a
master config map with key value pairs, to hold things such as mail
server names, file system paths, company name, contact person, system
admin email, etc... Things like that. So the proper method to go about
doing that would be ideal. Thanks.

-- 
Justin Stanczak
Stanczak Group
812-735-3600

"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke

..________...............__.................
./  _____/..____..._____/..|_..____...____....
/...\..____/.__.\./....\...__\/.._.\./._..\....
\....\_\..\..___/|...|..\..|.(..<_>.|.<_>..)....
.\______../\___.._\__|../__|..\____/.\____/......
........\/.....\/.....\/..........................


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: Configuration Points - Fixed

Posted by Stanczak Group <ju...@stanczakgroup.com>.
Never mind, I got it. It was my mistake. I misread the on-line docs.

Stanczak Group wrote:

>I'm trying to create a config point that creates a map of strings, so I
>can access them by their key values. How do I do this, I'm not
>completely understanding config points. Here's what I have from the
>on-line examples:
>
><configuration-point id="Config">
>    <schema>
>        <element name="cfg" key-attribute="key">
>            <attribute name="key"/>
>            <attribute name="value" required="true"/>
>        </element>
>    </schema>
></configuration-point>
>
><contribution configuration-id="Config">
>  <cfg key="key1" value="Poopieeeeeeeeeeeeeeeee"/>
>  <cfg key="key2" value="value2"/>
></contribution>
>
>I think I understand how config points work, but I'm not completely
>certain. The above seems to inject fine, but map is empty. Showing a
>size of zero. I'm not even sure I'm using them properly in context of
>good HiveMind programming practices. I was thinking of just creating a
>master config map with key value pairs, to hold things such as mail
>server names, file system paths, company name, contact person, system
>admin email, etc... Things like that. So the proper method to go about
>doing that would be ideal. Thanks.
>
>  
>

-- 
Justin Stanczak
Stanczak Group
812-735-3600

"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke

..________...............__.................
./  _____/..____..._____/..|_..____...____....
/...\..____/.__.\./....\...__\/.._.\./._..\....
\....\_\..\..___/|...|..\..|.(..<_>.|.<_>..)....
.\______../\___.._\__|../__|..\____/.\____/......
........\/.....\/.....\/..........................


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org