Skip to content

Commit

Permalink
Move additional service provider registrations from Camel Quarkus
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Jan 19, 2024
1 parent d946891 commit 938e5d3
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

import org.codehaus.stax2.validation.XMLValidationSchemaFactory;

import com.ctc.wstx.shaded.msv.relaxng_datatype.DatatypeLibraryFactory;

import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem;
Expand All @@ -24,12 +26,14 @@ void registerServices(BuildProducer<ServiceProviderBuildItem> serviceProvider) {
Stream.of(
XMLEventFactory.class,
XMLInputFactory.class,
XMLOutputFactory.class)
XMLOutputFactory.class,
DatatypeLibraryFactory.class)
.map(Class::getName),
Stream.of(
XMLValidationSchemaFactory.INTERNAL_ID_SCHEMA_DTD,
XMLValidationSchemaFactory.INTERNAL_ID_SCHEMA_RELAXNG,
XMLValidationSchemaFactory.INTERNAL_ID_SCHEMA_W3C)
XMLValidationSchemaFactory.INTERNAL_ID_SCHEMA_W3C,
XMLValidationSchemaFactory.INTERNAL_ID_SCHEMA_TREX)
.map(schemaId -> XMLValidationSchemaFactory.class.getName() + "." + schemaId))
.forEach(serviceName -> {
try {
Expand Down

0 comments on commit 938e5d3

Please sign in to comment.