META-INF/services manipulation should use SafeServiceLoader

Description

WebAppParser directly manipulates META-INF/services resources to load ServletContainerInitializers in an OSGi-friendly way.

The issue is rather generic and should be handled by a utility class.

There is org.ops4j.spi.SafeServiceLoader in ops4j-base-spi 1.4.0 which looks much the same - probably created later than this code in Pax Web, I didn't check.

Environment

None

Status

Assignee

Achim Nierbeck

Reporter

Harald Wellmann

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure