eclipse-ee4j / eclipse-ee4j/jersey

Change Request: opening API for BundleSchemeResourceFinderFactory.SCHEMES class attribute

Open
#5,820 6 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

Could you please open the implementation of the attribute `SCHEMES` of the class `org.glassfish.jersey.server.internal.scanning.BundleSchemeResourceFinderFactory` to allow runtime modifications, e.g.

```java
public static final Set SCHEMES = new TreeSet<>(Collections.singleton("bundle"));
```

So library users can programmatically add other schemes, e.g.

```java
BundleSchemeResourceFinderFactory.SCHEMES.add("bundleentry");
```

A use case is for the Eclipse plugins, that are OSGi bundles, were the scheme can be `bundleentry` as well.

-----

Otherwise, could you please at least add `bundleentry` to the Set, e.g.

```java
private static final Set SCHEMES = Set.of("bundle", "bundleentry");
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.