Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2016-12-04 01:07:00 +0000
committerslewis2016-12-04 01:07:00 +0000
commit1393dca8d7786785aa8679258c38683a4c2c7bcc (patch)
tree7bd3d4b12f107831d07b0fea050f902ba8156466 /protocols/bundles
parent87a4dd40185dd0744545984c8d76aabd5abbea2f (diff)
downloadorg.eclipse.ecf-1393dca8d7786785aa8679258c38683a4c2c7bcc.tar.gz
org.eclipse.ecf-1393dca8d7786785aa8679258c38683a4c2c7bcc.tar.xz
org.eclipse.ecf-1393dca8d7786785aa8679258c38683a4c2c7bcc.zip
Fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=507655
Diffstat (limited to 'protocols/bundles')
-rw-r--r--protocols/bundles/ch.ethz.iks.r_osgi.remote/META-INF/MANIFEST.MF14
-rw-r--r--protocols/bundles/ch.ethz.iks.r_osgi.remote/pom.xml2
-rw-r--r--protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/RemoteOSGiService.java6
-rw-r--r--protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/impl/ProxyGenerator.java2
4 files changed, 15 insertions, 9 deletions
diff --git a/protocols/bundles/ch.ethz.iks.r_osgi.remote/META-INF/MANIFEST.MF b/protocols/bundles/ch.ethz.iks.r_osgi.remote/META-INF/MANIFEST.MF
index 9896c759d..bbdf2bb8a 100644
--- a/protocols/bundles/ch.ethz.iks.r_osgi.remote/META-INF/MANIFEST.MF
+++ b/protocols/bundles/ch.ethz.iks.r_osgi.remote/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %plugin.name
Bundle-SymbolicName: ch.ethz.iks.r_osgi.remote
-Bundle-Version: 1.0.8.qualifier
+Bundle-Version: 1.0.9.qualifier
Bundle-Vendor: %plugin.provider
Import-Package: org.objectweb.asm;version="[5.0.1,6.0.0)",
org.osgi.framework,
@@ -10,12 +10,12 @@ Import-Package: org.objectweb.asm;version="[5.0.1,6.0.0)",
org.osgi.service.log,
org.osgi.service.packageadmin,
org.osgi.util.tracker
-Export-Package: ch.ethz.iks.r_osgi;version="1.0.0.RC4",
- ch.ethz.iks.r_osgi.channels;version="1.0.0.RC4",
- ch.ethz.iks.r_osgi.messages;version="1.0.0.RC4",
- ch.ethz.iks.r_osgi.service_discovery;version="1.0.0.RC4",
- ch.ethz.iks.r_osgi.types;version="1.0.0.RC4",
- ch.ethz.iks.util;version="1.0.0.RC4"
+Export-Package: ch.ethz.iks.r_osgi;version="1.0.9",
+ ch.ethz.iks.r_osgi.channels;version="1.0.1",
+ ch.ethz.iks.r_osgi.messages;version="1.0.1",
+ ch.ethz.iks.r_osgi.service_discovery;version="1.0.1",
+ ch.ethz.iks.r_osgi.types;version="1.0.1",
+ ch.ethz.iks.util;version="1.0.1"
DynamicImport-Package: *
Bundle-ClassPath: .
Bundle-Activator: ch.ethz.iks.r_osgi.impl.RemoteOSGiActivator
diff --git a/protocols/bundles/ch.ethz.iks.r_osgi.remote/pom.xml b/protocols/bundles/ch.ethz.iks.r_osgi.remote/pom.xml
index c265a316b..a74c66bde 100644
--- a/protocols/bundles/ch.ethz.iks.r_osgi.remote/pom.xml
+++ b/protocols/bundles/ch.ethz.iks.r_osgi.remote/pom.xml
@@ -10,6 +10,6 @@
</parent>
<groupId>org.eclipse.ecf</groupId>
<artifactId>ch.ethz.iks.r_osgi.remote</artifactId>
- <version>1.0.8-SNAPSHOT</version>
+ <version>1.0.9-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project>
diff --git a/protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/RemoteOSGiService.java b/protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/RemoteOSGiService.java
index d38feefdb..939de16f2 100644
--- a/protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/RemoteOSGiService.java
+++ b/protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/RemoteOSGiService.java
@@ -78,6 +78,12 @@ public interface RemoteOSGiService {
// public constants for service registrations
/**
+ * Default proxy prefix.
+ */
+ String R_OSGi_PROXY_PREFIX = System.getProperty("ch.ethz.iks.r_osgi.proxyprefix",
+ "ch.ethz.iks.r_osgi.genproxy.endpoint.");
+
+ /**
* this property has to be set in order to release a service for remote
* access. Currently, the following two policies are supported.
*
diff --git a/protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/impl/ProxyGenerator.java b/protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/impl/ProxyGenerator.java
index 32f8d3a54..4ee905bb1 100644
--- a/protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/impl/ProxyGenerator.java
+++ b/protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/impl/ProxyGenerator.java
@@ -220,7 +220,7 @@ class ProxyGenerator extends ClassVisitor implements Opcodes {
attr.putValue("Bundle-Activator", className); //$NON-NLS-1$
attr.putValue("Bundle-Classpath", "."); //$NON-NLS-1$ //$NON-NLS-2$
attr.putValue(
- "Bundle-SymbolicName", "R-OSGi Proxy Bundle generated for Endpoint " + uri.toString()); //$NON-NLS-1$ //$NON-NLS-2$
+ "Bundle-SymbolicName", RemoteOSGiService.R_OSGi_PROXY_PREFIX + service.getHost()+"."+service.getPort()+"."+service.getFragment()); //$NON-NLS-1$ //$NON-NLS-2$
attr.putValue(
"Import-Package", //$NON-NLS-1$
"org.osgi.framework, ch.ethz.iks.r_osgi, ch.ethz.iks.r_osgi.types, ch.ethz.iks.r_osgi.channels" //$NON-NLS-1$

Back to the top