Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2009-08-18 15:04:20 -0400
committerslewis2009-08-18 15:04:20 -0400
commit53e9f4b56c13b5c133a5af5b995d44d3a4cbdd43 (patch)
treeac1426dc309a06fffdf423ba1a730063baaaa5d7 /providers/bundles/org.eclipse.ecf.provider.filetransfer
parentcfdd4dc6ea43b6431edd925cf1c71ea44b813414 (diff)
downloadorg.eclipse.ecf-53e9f4b56c13b5c133a5af5b995d44d3a4cbdd43.tar.gz
org.eclipse.ecf-53e9f4b56c13b5c133a5af5b995d44d3a4cbdd43.tar.xz
org.eclipse.ecf-53e9f4b56c13b5c133a5af5b995d44d3a4cbdd43.zip
Added reinitialize method to IFileTransferProtocolToFactoryMapper service and provided implementation.
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.filetransfer')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/internal/provider/filetransfer/Activator.java9
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/IFileTransferProtocolToFactoryMapper.java6
2 files changed, 15 insertions, 0 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/internal/provider/filetransfer/Activator.java b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/internal/provider/filetransfer/Activator.java
index 140efdfe9..9478ae57a 100644
--- a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/internal/provider/filetransfer/Activator.java
+++ b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/internal/provider/filetransfer/Activator.java
@@ -267,6 +267,15 @@ public class Activator implements BundleActivator, IFileTransferProtocolToFactor
protocolMapperRegistration = context.registerService(IFileTransferProtocolToFactoryMapper.class.getName(), this, null);
}
+ public boolean reinitialize() {
+ try {
+ loadProtocolHandlers();
+ return true;
+ } catch (Exception e) {
+ return false;
+ }
+ }
+
/*
* (non-Javadoc)
*
diff --git a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/IFileTransferProtocolToFactoryMapper.java b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/IFileTransferProtocolToFactoryMapper.java
index 7418204b8..e5448249a 100644
--- a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/IFileTransferProtocolToFactoryMapper.java
+++ b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/IFileTransferProtocolToFactoryMapper.java
@@ -144,4 +144,10 @@ public interface IFileTransferProtocolToFactoryMapper {
*/
public boolean removeSendFileTransferFactory(String id);
+ /**
+ * Reinitialized protocol to factory mapping defined via extension registry/extension points.
+ * @return true if reinitialization succeeds, false if not
+ */
+ public boolean reinitialize();
+
}

Back to the top