Search in sources :

Example 1 with RemoteServiceNamespace

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);
            }
        }
    });
}
Also used : RemoteServiceContainerAdapterFactory(org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceContainerAdapterFactory) RemoteServiceNamespace(org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceNamespace) Namespace(org.eclipse.ecf.core.identity.Namespace) RemoteServiceNamespace(org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceNamespace)

Aggregations

Namespace (org.eclipse.ecf.core.identity.Namespace)1 RemoteServiceContainerAdapterFactory (org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceContainerAdapterFactory)1 RemoteServiceNamespace (org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceNamespace)1