how to override a service provider in java

前端 未结 5 2075
不思量自难忘°
不思量自难忘° 2020-12-19 01:42

This is more a general question by example: I\'m using xstream and woodstox, woodstox comes with a service provider for javax.xml.stream.XMLOutputFactory in woodstox jar reg

5条回答
  •  佛祖请我去吃肉
    2020-12-19 02:26

    If your implementation is in a jar then make sure it is before woodstox.jar on the class path, then FactoryFinder will use your implementation.

提交回复
热议问题