Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2018-03-05 23:29:40 -0500
committerslewis2018-03-05 23:29:40 -0500
commit9e61dcab7e9bafb1fec95abf9c32be32e34ea0cf (patch)
tree4cbc0477fc94ebe25957617a0f524abc55985097 /providers/bundles
parentd64f3db57819c3bc6899f0b9fd22b9b46da908d8 (diff)
downloadorg.eclipse.ecf-9e61dcab7e9bafb1fec95abf9c32be32e34ea0cf.tar.gz
org.eclipse.ecf-9e61dcab7e9bafb1fec95abf9c32be32e34ea0cf.tar.xz
org.eclipse.ecf-9e61dcab7e9bafb1fec95abf9c32be32e34ea0cf.zip
Fixes for namespaces.
Diffstat (limited to 'providers/bundles')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.discovery/src/org/eclipse/ecf/internal/provider/discovery/CompositeNamespace.java4
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/identity/FileTransferNamespace.java2
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/identity/JMDNSNamespace.java2
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.local/src/org/eclipse/ecf/provider/local/identity/LocalNamespace.java3
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.r_osgi/src/org/eclipse/ecf/provider/r_osgi/identity/R_OSGiNamespace.java4
5 files changed, 13 insertions, 2 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.discovery/src/org/eclipse/ecf/internal/provider/discovery/CompositeNamespace.java b/providers/bundles/org.eclipse.ecf.provider.discovery/src/org/eclipse/ecf/internal/provider/discovery/CompositeNamespace.java
index 5ffc44e04..7dbbb7f00 100644
--- a/providers/bundles/org.eclipse.ecf.provider.discovery/src/org/eclipse/ecf/internal/provider/discovery/CompositeNamespace.java
+++ b/providers/bundles/org.eclipse.ecf.provider.discovery/src/org/eclipse/ecf/internal/provider/discovery/CompositeNamespace.java
@@ -49,4 +49,8 @@ public class CompositeNamespace extends Namespace {
return "composite"; //$NON-NLS-1$
}
+ @Override
+ public Class<?>[][] getSupportedParameterTypes() {
+ return new Class<?>[][] {{String.class, URI.class}, {IServiceTypeID.class, URI.class}, {IServiceTypeID.class}};
+ }
}
diff --git a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/identity/FileTransferNamespace.java b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/identity/FileTransferNamespace.java
index 5252af1d7..e8c6e0745 100644
--- a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/identity/FileTransferNamespace.java
+++ b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/identity/FileTransferNamespace.java
@@ -93,7 +93,7 @@ public class FileTransferNamespace extends Namespace {
* @see org.eclipse.ecf.core.identity.Namespace#getSupportedParameterTypesForCreateInstance()
*/
public Class[][] getSupportedParameterTypes() {
- return new Class[][] { {URL.class}, {String.class}};
+ return new Class[][] {{URL.class}, {String.class}, {URI.class}};
}
}
diff --git a/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/identity/JMDNSNamespace.java b/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/identity/JMDNSNamespace.java
index ce80b18cb..b73526af8 100644
--- a/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/identity/JMDNSNamespace.java
+++ b/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/identity/JMDNSNamespace.java
@@ -103,6 +103,6 @@ public class JMDNSNamespace extends Namespace {
* @see org.eclipse.ecf.core.identity.Namespace#getSupportedParameterTypesForCreateInstance()
*/
public Class[][] getSupportedParameterTypes() {
- return new Class[][] {{String.class}, {String.class, String.class}};
+ return new Class[][] {{String.class}, {String.class, String.class}, {IServiceTypeID.class}, {String.class, URI.class}};
}
}
diff --git a/providers/bundles/org.eclipse.ecf.provider.local/src/org/eclipse/ecf/provider/local/identity/LocalNamespace.java b/providers/bundles/org.eclipse.ecf.provider.local/src/org/eclipse/ecf/provider/local/identity/LocalNamespace.java
index 58355279c..89becf833 100644
--- a/providers/bundles/org.eclipse.ecf.provider.local/src/org/eclipse/ecf/provider/local/identity/LocalNamespace.java
+++ b/providers/bundles/org.eclipse.ecf.provider.local/src/org/eclipse/ecf/provider/local/identity/LocalNamespace.java
@@ -49,4 +49,7 @@ public class LocalNamespace extends Namespace {
return SCHEME;
}
+ public Class[][] getSupportedParameterTypes() {
+ return new Class[][] {{}, {URI.class}, {String.class}, {URL.class}};
+ }
}
diff --git a/providers/bundles/org.eclipse.ecf.provider.r_osgi/src/org/eclipse/ecf/provider/r_osgi/identity/R_OSGiNamespace.java b/providers/bundles/org.eclipse.ecf.provider.r_osgi/src/org/eclipse/ecf/provider/r_osgi/identity/R_OSGiNamespace.java
index 8e9ddacec..7fbe86ea8 100644
--- a/providers/bundles/org.eclipse.ecf.provider.r_osgi/src/org/eclipse/ecf/provider/r_osgi/identity/R_OSGiNamespace.java
+++ b/providers/bundles/org.eclipse.ecf.provider.r_osgi/src/org/eclipse/ecf/provider/r_osgi/identity/R_OSGiNamespace.java
@@ -122,4 +122,8 @@ public class R_OSGiNamespace extends Namespace {
return new String[] {NAMESPACE_SCHEME};
}
+ @Override
+ public Class<?>[][] getSupportedParameterTypes() {
+ return new Class<?>[][] {{String.class}};
+ }
} \ No newline at end of file

Back to the top