> To Johans point, I think the current implementation is too inflexible,
> it is far to difficult to change/extend/limit the search order easily
> if required. IMO this general design problem needs to be fixed.

Yep, I agree. The logic should be brought back to one place. So... we
could open an issue for that, right?


May be not bringing it back to one place but may be a single Interface
which allows to easily chain implementations. Than you can have one
implementation that searches the locale and styles first, another
implementation takeing care of markup inheritance, the next one
traversing the component hierachy, one for the super class hierarchy,
the next one what ever. By simply more or less plugging them together
the search order would be obvious and could easily be
changed/extended/simplified.

Eelco

Reply via email to