Search in sources :

Example 1 with LocalNamespace

use of org.eclipse.ecf.provider.local.identity.LocalNamespace in project ecf by eclipse.

the class Activator method start.

/*
	 * (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
	 */
public void start(final BundleContext bundleContext) throws Exception {
    Activator.context = bundleContext;
    SafeRunner.run(new ExtensionRegistryRunnable(bundleContext) {

        protected void runWithoutRegistry() throws Exception {
            bundleContext.registerService(Namespace.class, new LocalNamespace(), null);
            // $NON-NLS-1$//$NON-NLS-2$
            bundleContext.registerService(ContainerTypeDescription.class, new ContainerTypeDescription("ecf.local", new LocalRemoteServiceContainerInstantiator(), "Local Container Instantiator", false, false), null);
        }
    });
}
Also used : LocalRemoteServiceContainerInstantiator(org.eclipse.ecf.internal.provider.local.container.LocalRemoteServiceContainerInstantiator) LocalNamespace(org.eclipse.ecf.provider.local.identity.LocalNamespace) ContainerTypeDescription(org.eclipse.ecf.core.ContainerTypeDescription) ExtensionRegistryRunnable(org.eclipse.ecf.core.util.ExtensionRegistryRunnable) Namespace(org.eclipse.ecf.core.identity.Namespace) LocalNamespace(org.eclipse.ecf.provider.local.identity.LocalNamespace)

Aggregations

ContainerTypeDescription (org.eclipse.ecf.core.ContainerTypeDescription)1 Namespace (org.eclipse.ecf.core.identity.Namespace)1 ExtensionRegistryRunnable (org.eclipse.ecf.core.util.ExtensionRegistryRunnable)1 LocalRemoteServiceContainerInstantiator (org.eclipse.ecf.internal.provider.local.container.LocalRemoteServiceContainerInstantiator)1 LocalNamespace (org.eclipse.ecf.provider.local.identity.LocalNamespace)1