Skip to content

Commit c8e64cb

Browse files
authored
Revert "Declare osgi.serviceloader.registrar requirement as optional. (#155)" (#164)
This reverts commit bc4ce73.
1 parent 2ebb4a5 commit c8e64cb

File tree

6 files changed

+6
-18
lines changed

6 files changed

+6
-18
lines changed

src/main/java/com/ctc/wstx/dtd/DTDSchemaFactory.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
import com.ctc.wstx.util.SymbolTable;
3333
import com.ctc.wstx.util.URLUtil;
3434

35-
import static aQute.bnd.annotation.Resolution.OPTIONAL;
36-
3735
/**
3836
* Factory for creating DTD validator schema objects (shareable stateless
3937
* "blueprints" for creating actual validators).
@@ -43,7 +41,7 @@
4341
* documents) is only accessible by core Woodstox. The externally
4442
* accessible
4543
*/
46-
@ServiceProvider(value = XMLValidationSchemaFactory.class, resolution = OPTIONAL)
44+
@ServiceProvider(XMLValidationSchemaFactory.class)
4745
public class DTDSchemaFactory
4846
extends XMLValidationSchemaFactory
4947
{

src/main/java/com/ctc/wstx/msv/RelaxNGSchemaFactory.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
import com.sun.msv.reader.GrammarReaderController;
2828
import com.sun.msv.reader.trex.ng.RELAXNGReader;
2929

30-
import static aQute.bnd.annotation.Resolution.OPTIONAL;
31-
3230
/**
3331
* This is a StAX2 schema factory that can parse and create schema instances
3432
* for creating validators that validate documents to check their validity
@@ -38,7 +36,7 @@
3836
* to work, and acts as a quite thin wrapper layer (although not a completely
3937
* trivial one, since MSV only exports SAX API, some adapting is needed)
4038
*/
41-
@ServiceProvider(value = XMLValidationSchemaFactory.class, resolution = OPTIONAL)
39+
@ServiceProvider(XMLValidationSchemaFactory.class)
4240
public class RelaxNGSchemaFactory
4341
extends BaseSchemaFactory
4442
{

src/main/java/com/ctc/wstx/msv/W3CSchemaFactory.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
import com.sun.msv.reader.GrammarReaderController;
2828
import com.sun.msv.reader.xmlschema.XMLSchemaReader;
2929

30-
import static aQute.bnd.annotation.Resolution.OPTIONAL;
31-
3230
/**
3331
* This is a StAX2 schema factory that can parse and create schema instances
3432
* for creating validators that validate documents to check their validity
@@ -38,7 +36,7 @@
3836
* to work, and acts as a quite thin wrapper layer, similar to
3937
* how matching RelaxNG validator works
4038
*/
41-
@ServiceProvider(value = XMLValidationSchemaFactory.class, resolution = OPTIONAL)
39+
@ServiceProvider(XMLValidationSchemaFactory.class)
4240
public class W3CSchemaFactory
4341
extends BaseSchemaFactory
4442
{

src/main/java/com/ctc/wstx/stax/WstxEventFactory.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@
2828
import com.ctc.wstx.compat.QNameCreator;
2929
import com.ctc.wstx.evt.*;
3030

31-
import static aQute.bnd.annotation.Resolution.OPTIONAL;
32-
3331
/**
3432
* Implementation of {@link XMLEventFactory} to be used with
3533
* Woodstox. Contains minimal additions on top of Stax2 RI.
3634
*/
37-
@ServiceProvider(value = XMLEventFactory.class, resolution = OPTIONAL)
35+
@ServiceProvider(XMLEventFactory.class)
3836
public final class WstxEventFactory
3937
extends Stax2EventFactoryImpl
4038
{

src/main/java/com/ctc/wstx/stax/WstxInputFactory.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@
5454
import com.ctc.wstx.util.SymbolTable;
5555
import com.ctc.wstx.util.URLUtil;
5656

57-
import static aQute.bnd.annotation.Resolution.OPTIONAL;
58-
5957
/**
6058
* Factory for creating various Stax objects (stream/event reader,
6159
* writer).
@@ -71,7 +69,7 @@
7169
*
7270
* @author Tatu Saloranta
7371
*/
74-
@ServiceProvider(value = XMLInputFactory.class, resolution = OPTIONAL)
72+
@ServiceProvider(XMLInputFactory.class)
7573
public class WstxInputFactory
7674
extends XMLInputFactory2
7775
implements ReaderCreator,

src/main/java/com/ctc/wstx/stax/WstxOutputFactory.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
import com.ctc.wstx.sw.XmlWriter;
5353
import com.ctc.wstx.util.URLUtil;
5454

55-
import static aQute.bnd.annotation.Resolution.OPTIONAL;
56-
5755
/**
5856
* Implementation of {@link XMLOutputFactory} for Wstx.
5957
*<p>
@@ -64,7 +62,7 @@
6462
* </li>
6563
*</ul>
6664
*/
67-
@ServiceProvider(value = XMLOutputFactory.class, resolution = OPTIONAL)
65+
@ServiceProvider(XMLOutputFactory.class)
6866
public class WstxOutputFactory
6967
extends XMLOutputFactory2
7068
implements OutputConfigFlags

0 commit comments

Comments
 (0)