springuser2014 / wro4j

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

Externalize processor provider capability #138

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Create a factory interface which would be responsible for providing wro4j with 
processors to be used.

Original issue reported on code.google.com by alex.obj...@gmail.com on 30 Oct 2010 at 9:04

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 5 Mar 2011 at 3:58

GoogleCodeExporter commented 9 years ago
This feature was intended to be added in 1.4.0 release, but mistakenly has been 
merged in 1.3.6 release. The only disadvantage of this mistake, is that any 
code which relies on adding processors won't compile and will require a small 
change. 
Example:

Old code:

protected void configureProcessors(final GroupsProcessor groupsProcessor) {
  groupsProcessor.addPreProcessor(new BomStripperPreProcessor());
}

New code:

protected ProcessorsFactory newProcessorsFactory() {
  final SimpleProcessorsFactory factory = new SimpleProcessorsFactory();
  factory.addPreProcessor(new BomStripperPreProcessor());
}

Original comment by alex.obj...@gmail.com on 18 Apr 2011 at 5:46