eclipse-ee4j / eclipse-ee4j/jersey

Adding `bundleentry` to OSGI bundle package scan URI scheme support?

Open
#3,551 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

@mgajdos @mpotociar @stepanv
https://github.com/jersey/jersey/blob/master/core-server/src/main/java/org/glassfish/jersey/server/internal/scanning/BundleSchemeResourceFinderFactory.java

This FinderFactory has only one `bundle` scheme, which will skip mapping URI that has scheme `bundleentry` (path points to bundle local packages) when used by PackageNamesScanner inside a ResourceConfig.

```
private static final Set SCHEMES = Collections.singleton("bundle");
```

Is there a plan to add `bundleentry` to this factory class's `SCHEMES` in the future? With all the internal interfaces and classes as protected scope in the scanner package, there is not much we can do to compensate this behavior at runtime, so I'm hoping we could consider adding it. Please let us know if this is intentionally left out to encourage putting all of the RESTful resource classes in a separate OSGI bundle.

Thanks!

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.