Skip to content

Commit

Permalink
Backport fix for missing method
Browse files Browse the repository at this point in the history
The method
PlexusFrameworkConnectServiceFactory.getOsgiFramework(ClassRealm)
was accidentally deleted
  • Loading branch information
laeubi committed Sep 29, 2022
1 parent b071d3b commit ccc1f1c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@
<artifactId>bcprov-jdk18on</artifactId>
<version>(,1.71]</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpg-jdk18on</artifactId>
<version>(,1.71]</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,4 +387,14 @@ public static Framework getForeignFramework(ClassRealm realm) {
}
return null;
}

// DO NOT DELETE THIS METHOD! It is referenced by reflection in
// getForeignFramework!
public static Framework getOsgiFramework(ClassRealm realm) {
PlexusConnectFramework cachedFramework = frameworkMap.get(realm);
if (cachedFramework != null) {
return cachedFramework.getFramework();
}
return null;
}
}

0 comments on commit ccc1f1c

Please sign in to comment.