google-code-export / wro4j

Automatically exported from code.google.com/p/wro4j
1 stars 1 forks source link

Providers loaded from ServiceLoader cannot override default providers #644

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I was trying to replace the CSS URL rewriter that DefaultProcessorProvider 
assigns to "cssUrlRewriting" with my own, which is loaded via a ServiceLoader. 
It wasn't working because the DefaultProcessorProvider was loaded last, so it 
overwrote my assignments.

Of course, the order the ServiceLoader loads services in is non-deterministic, 
but a reasonable solution might be to process built-in providers first, so 3rd 
party ones have a chance to override them?

Reference to github issue: https://github.com/alexo/wro4j/issues/87

Original issue reported on code.google.com by alex.obj...@gmail.com on 5 Jan 2013 at 10:21

GoogleCodeExporter commented 9 years ago
Fixed in branch 1.6.x.
Contributed by @mwanji: https://github.com/mwanji

Original comment by alex.obj...@gmail.com on 9 Jan 2013 at 5:53