Skip to content

Commit e8f4280

Browse files
committed
Backport resolve all bundles for connect framework
1 parent d217542 commit e8f4280

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sisu-osgi/sisu-osgi-connect/src/main/java/org/eclipse/sisu/osgi/connect/PlexusFrameworkConnectServiceFactory.java

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.net.URL;
2020
import java.util.Arrays;
2121
import java.util.Collection;
22+
import java.util.Collections;
2223
import java.util.Comparator;
2324
import java.util.Enumeration;
2425
import java.util.HashMap;
@@ -49,6 +50,7 @@
4950
import org.osgi.framework.Constants;
5051
import org.osgi.framework.connect.ConnectFrameworkFactory;
5152
import org.osgi.framework.launch.Framework;
53+
import org.osgi.framework.wiring.FrameworkWiring;
5254
import org.osgi.service.component.runtime.ServiceComponentRuntime;
5355
import org.osgi.service.component.runtime.dto.ComponentConfigurationDTO;
5456
import org.osgi.service.component.runtime.dto.ComponentDescriptionDTO;
@@ -143,6 +145,8 @@ synchronized PlexusConnectFramework getFramework(ClassRealm realm) throws Bundle
143145
for (ClassRealm r : realms) {
144146
connector.installRealm(r, osgiFramework.getBundleContext(), connectFramework);
145147
}
148+
FrameworkWiring wiring = osgiFramework.adapt(FrameworkWiring.class);
149+
wiring.resolveBundles(Collections.emptyList());
146150
osgiFramework.start();
147151

148152
for (EquinoxLifecycleListener listener : lifecycleListeners.values()) {

0 commit comments

Comments
 (0)