Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add utility to derive the BREE of a resource from its EE requirements #1325

Merged
merged 1 commit into from
Jul 7, 2024

Conversation

HannesWell
Copy link
Member

In general the strategy is to consider all osgi.ee requirements of a resource and parse their filter.
For the case of a simple filter like '(&(osgi.ee=JavaSE)(version=17)', probably the majority of cases, a fast-path is provided where the filter is just looked up in a map.
Otherwise each registered execution-environment is matched against the filter and the list of matching EEs is returned.

The new method is intended to support the migration from the Equinox resolver to the OSGi Resources/Wiring API.

It is required for #1302 and #1318

In general the strategy is to consider all osgi.ee requirements of a
resource and parse their filter.
For the case of a simple filter like '(&(osgi.ee=JavaSE)(version=17)',
probably the majority of cases, a fast-path is provided where the filter
is just looked up in a map.
Otherwise each registered execution-environment is matched against the
filter and the list of matching EEs is returned.

The new method is intended to support the migration from the Equinox
resolver to the OSGi Resources/Wiring API.
Copy link

github-actions bot commented Jul 7, 2024

Test Results

   291 files  ±0     291 suites  ±0   55m 20s ⏱️ + 1m 4s
 3 579 tests +1   3 503 ✅ +1   76 💤 ±0  0 ❌ ±0 
11 034 runs  +3  10 803 ✅ +3  231 💤 ±0  0 ❌ ±0 

Results for commit 6fef275. ± Comparison against base commit 1ccf4df.

@HannesWell HannesWell merged commit 1b1b92a into eclipse-pde:master Jul 7, 2024
17 checks passed
@HannesWell HannesWell deleted the ee-processing-support branch July 7, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant