Skip to content

Commit d922ed4

Browse files
author
Jens Kuebler
committed
B: Reconfigure Service Endpoint with application works again
1 parent 3264063 commit d922ed4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

bundles/com.kuebler.osgi.ds.equinox/src/com/kuebler/osgi/ds/equinox/EquinoxAppConfigurator.java

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import org.osgi.service.component.annotations.Reference;
1313
import org.osgi.service.component.annotations.ReferenceCardinality;
1414
import org.osgi.service.component.annotations.ReferencePolicy;
15+
import org.osgi.service.component.runtime.serial.ServiceComponentRuntime;
1516

1617
/**
1718
*
@@ -39,6 +40,10 @@ public void activate() throws IOException {
3940
if(instanceArea != null) {
4041
properties.put("osgi.instance.area", instanceArea);
4142
}
43+
properties.put("service.exported.interfaces", "*");
44+
properties.put("service.exported.configs", "ecf.generic.server");
45+
properties.put("objectClass",ServiceComponentRuntime.class.getName());
46+
4247
configuration.update(properties);
4348
}
4449

bundles/com.kuebler.osgi.ds.ui/src/org/osgi/ds/ui/SCRToolContributor.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ private Composite createVersionTable(Composite parent) {
267267
_tableViewer.setContentProvider(new ArrayContentProvider());
268268
// _tableViewer.setLabelProvider(new EndpointLabelProvider());
269269

270-
_tableViewer.setInput(serviceTracker.getService().getDiscoveredEndpoints());
270+
EndpointDescription[] endpoints = serviceTracker.getService().getDiscoveredEndpoints();
271+
_tableViewer.setInput(endpoints);
271272

272273
// createContextMenu();
273274

0 commit comments

Comments
 (0)