use of org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceNamespace in project ecf by eclipse.
the class Activator method start.
public void start(final BundleContext ctxt) throws Exception {
this.context = ctxt;
SafeRunner.run(new ExtensionRegistryRunnable(this.context) {
protected void runWithoutRegistry() throws Exception {
// $NON-NLS-1$
ctxt.registerService(Namespace.class, new RemoteServiceNamespace(org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceNamespace.NAME, "Generic remote service namespace"), null);
IAdapterManager am = getAdapterManager(ctxt);
if (am != null) {
rscAdapterFactories = new ArrayList();
IAdapterFactory af = new RemoteServiceContainerAdapterFactory();
am.registerAdapters(af, org.eclipse.ecf.provider.generic.SSLServerSOContainer.class);
rscAdapterFactories.add(af);
af = new RemoteServiceContainerAdapterFactory();
am.registerAdapters(af, org.eclipse.ecf.provider.generic.TCPServerSOContainer.class);
rscAdapterFactories.add(af);
af = new RemoteServiceContainerAdapterFactory();
am.registerAdapters(af, org.eclipse.ecf.provider.generic.SSLClientSOContainer.class);
rscAdapterFactories.add(af);
af = new RemoteServiceContainerAdapterFactory();
am.registerAdapters(af, org.eclipse.ecf.provider.generic.TCPClientSOContainer.class);
rscAdapterFactories.add(af);
}
}
});
}
Aggregations