On 20.08.2012, at 17:11, Alexander Klimetschek <[email protected]> wrote:

> My solution has the benefit that it does not require any change to sling i18n 
> at all. Do you think my approach would work (especially 4)?

It seems to work. The only problem is that it requires a restart of the sling 
i18n bundle in order for the I18nFilter to "reload" it's ResourceBundleProvider 
reference, as that's dynamic; the bind/unbind methods seem to not get called 
when a new service appears with a higher service rank (for cardinality = 0 or 
1).

The other problem is that this feels hacky and I introduce an extra layer here 
for something that is intended only to run in very special cases (i.e. 
testing)...

Cheers,
Alex

Reply via email to