On Fri, Feb 26, 2010 at 4:55 AM, Christian Riedel
<cr.ml...@googlemail.com> wrote:
> I think it could be useful to add a method like configuration.exists(key)

Yes, but what if module A wants to perform that check and override,
and the value for that key is added by module B?  If module A is
processed before module B, there's now way to know what module B will
contribute.  I suppose a drastic solution would be to invoke each
contribution method twice: first to perform all add()/addInstance()
(and ignore override(), check(), etc.) then a *second* time to process
override(), check(), etc. (and ignore add()/addInstance()).  I don't
like that solution however.

> Once I had a problem where this feature would have helped me but I had to 
> improve the architecture of the application instead (which was actually a 
> good thing ^^ )
>
>
> Am 25.02.2010 um 13:23 schrieb Robin Komiwes:
>
>> Yes, I was pretty sure it was the problem. Too bad :(
>>
>> On Thu, Feb 25, 2010 at 11:40 AM, Kristian Marinkovic <
>> kristian.marinko...@porsche.co.at> wrote:
>>
>>> hi Robin,
>>>
>>> imagine you have 2 overrides. which one is the correct one.
>>> it will processed in the order the module classes are loaded.
>>> and the order is not defined, it depends on the jvm, the os, the
>>> file system,....
>>>
>>> i guess you get the problem :)
>>>
>>> g,
>>> kris
>>>
>>>
>>>
>>> Robin Komiwes <odiss...@gmail.com>
>>> 25.02.2010 10:41
>>> Bitte antworten an
>>> "Tapestry users" <users@tapestry.apache.org>
>>>
>>>
>>> An
>>> Tapestry users <users@tapestry.apache.org>
>>> Kopie
>>>
>>> Thema
>>> About configuration override
>>>
>>>
>>>
>>>
>>>
>>>
>>> Hi there,
>>>
>>> I was wondering why configurations are only overridable only once?
>>>
>>> Regards,
>>>
>>> Robin
>>>
>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to