You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Tat leung <ta...@comcast.net> on 2006/05/06 18:28:49 UTC

Configuration Point and Contribution

Hi All,

I have a module (A) which defines a configuration point.  I have two 
other modules (B and C) which both define contributions to the same 
configuration point defined in A.  Will the contributions in B and C be 
in conflict with each other?

Thanks,
Tat

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


Re: Configuration Point and Contribution

Posted by James Carman <ja...@carmanconsulting.com>.
You can also specify that one of your <attribute>s is "unique" if you
don't want things to override one another.

> If you specified key-attribute value in configuration-point schema , eg:
> <element name="..." key-attribute="...">
> then You can treat the configuration as Map , there would have conflict
> with
> the same key duplicated in any module.
>
> But If you don't specify key-attribute, then the configuration point is
> treated as List, list don't conflict at all, It only add the same thing
> twice.
>
> Felix Sun
>
>
> On 5/6/06, Nicholas Clare <ni...@gmail.com> wrote:
>>
>>
>>
>> On 5/6/06, Tat leung <ta...@comcast.net> wrote:
>> >
>> > Hi All,
>> >
>> > I have a module (A) which defines a configuration point.  I have two
>> > other modules (B and C) which both define contributions to the same
>> > configuration point defined in A.  Will the contributions in B and C
>> be
>> > in conflict with each other?
>> >
>> > Thanks,
>> > Tat
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>> >
>> >
>> Hi Tat,
>>
>> As far as I know, it depends on how many contributions you've allowed
>> the
>> configuration point to have (in the occurs attribute of the
>> configuration-point). If it's just one, then there will be an error, but
>> if
>> you've allowed more (either 1..n or unbounded), then it should be fine.
>>
>> I may be wrong, since I'm pretty new to HiveMind, but I hope this helps,
>>
>> Nick
>>
>


James Carman, President
Carman Consulting, Inc.


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


Re: Configuration Point and Contribution

Posted by Felix Sun <su...@gmail.com>.
If you specified key-attribute value in configuration-point schema , eg:
<element name="..." key-attribute="...">
then You can treat the configuration as Map , there would have conflict with
the same key duplicated in any module.

But If you don't specify key-attribute, then the configuration point is
treated as List, list don't conflict at all, It only add the same thing
twice.

Felix Sun


On 5/6/06, Nicholas Clare <ni...@gmail.com> wrote:
>
>
>
> On 5/6/06, Tat leung <ta...@comcast.net> wrote:
> >
> > Hi All,
> >
> > I have a module (A) which defines a configuration point.  I have two
> > other modules (B and C) which both define contributions to the same
> > configuration point defined in A.  Will the contributions in B and C be
> > in conflict with each other?
> >
> > Thanks,
> > Tat
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> >
> >
> Hi Tat,
>
> As far as I know, it depends on how many contributions you've allowed the
> configuration point to have (in the occurs attribute of the
> configuration-point). If it's just one, then there will be an error, but if
> you've allowed more (either 1..n or unbounded), then it should be fine.
>
> I may be wrong, since I'm pretty new to HiveMind, but I hope this helps,
>
> Nick
>

Re: Configuration Point and Contribution

Posted by Nicholas Clare <ni...@gmail.com>.
On 5/6/06, Tat leung <ta...@comcast.net> wrote:
>
> Hi All,
>
> I have a module (A) which defines a configuration point.  I have two
> other modules (B and C) which both define contributions to the same
> configuration point defined in A.  Will the contributions in B and C be
> in conflict with each other?
>
> Thanks,
> Tat
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
Hi Tat,

As far as I know, it depends on how many contributions you've allowed the
configuration point to have (in the occurs attribute of the
configuration-point). If it's just one, then there will be an error, but if
you've allowed more (either 1..n or unbounded), then it should be fine.

I may be wrong, since I'm pretty new to HiveMind, but I hope this helps,

Nick