Package org.eclipse.ecf.core

Examples of org.eclipse.ecf.core.ContainerTypeDescription


    plugin = this;
    Activator.context = bundleContext;
    SafeRunner.run(new ExtensionRegistryRunnable(bundleContext) {
      protected void runWithoutRegistry() throws Exception {
        bundleContext.registerService(Namespace.class, new RpcNamespace(), null);
        bundleContext.registerService(ContainerTypeDescription.class, new ContainerTypeDescription(
            "ecf.xmlrpc.client", new RpcClientContainerInstantiator(), "Rpc Client Container"), null); //$NON-NLS-1$ //$NON-NLS-2$
      }
    });
  }
View Full Code Here


    plugin = this;
    this.context = context1;
    SafeRunner.run(new ExtensionRegistryRunnable(context1) {
      protected void runWithoutRegistry() throws Exception {
        context1.registerService(Namespace.class, new RestNamespace(), null);
        context1.registerService(ContainerTypeDescription.class, new ContainerTypeDescription("ecf.rest.client", new RestClientContainerInstantiator(), "Rest Client Container"), null); //$NON-NLS-1$ //$NON-NLS-2$
      }
    });
  }
View Full Code Here

   */
  public void start(final BundleContext context1) throws Exception {
    this.context = context1;
    SafeRunner.run(new ExtensionRegistryRunnable(this.context) {
      protected void runWithoutRegistry() throws Exception {
        context1.registerService(ContainerTypeDescription.class, new ContainerTypeDescription(GenericContainerInstantiator.TCPSERVER_NAME, new GenericContainerInstantiator(), "ECF Generic Server", true, false), null); //$NON-NLS-1$
        context1.registerService(ContainerTypeDescription.class, new ContainerTypeDescription(GenericContainerInstantiator.TCPCLIENT_NAME, new GenericContainerInstantiator(), "ECF Generic Client", false, true), null); //$NON-NLS-1$
        context1.registerService(ContainerTypeDescription.class, new ContainerTypeDescription(SSLGenericContainerInstantiator.SSLSERVER_NAME, new SSLGenericContainerInstantiator(), "ECF SSL Generic Server", true, false), null); //$NON-NLS-1$
        context1.registerService(ContainerTypeDescription.class, new ContainerTypeDescription(SSLGenericContainerInstantiator.SSLCLIENT_NAME, new SSLGenericContainerInstantiator(), "ECF SSL Generic Client", false, true), null); //$NON-NLS-1$
      }
    });
  }
View Full Code Here

      return null;
    return ((IConfigurationWizard) getSelectedNode().getWizard()).getConfigurationResult();
  }

  private ContainerTypeDescription getContainerTypeDescriptionForElement(WorkbenchWizardElement element) {
    ContainerTypeDescription typeDescription = ContainerFactory.getDefault().getDescriptionByName(element.getContainerTypeName());
    if (typeDescription == null) {
      String msg = NLS.bind(Messages.ConfigurationWizardSelectionPage_ERROR_MESSAGE, element);
      setErrorMessage(msg);
      ErrorDialog.openError(getShell(), Messages.ConfigurationWizardSelectionPage_CONFIGRATION_ERROR_TITLE, Messages.ConfigurationWizardSelectionPage_CONFIGURATION_ERROR_MESSAGE, new Status(IStatus.ERROR, Activator.PLUGIN_ID, CONTAINERTYPEDESCRIPTION_ERROR_CODE, msg, null));
      return null;
View Full Code Here

   
  }

  public IContainer createClient() throws ContainerCreateException {
    return ContainerFactory.getDefault()
        .createContainer( new ContainerTypeDescription(
            containerName, TwitterInstantiator.class.getName() ,
            "Trivial client/container for TwitterHub"));
  }
View Full Code Here

    Activator.context = bundleContext;

    SafeRunner.run(new ExtensionRegistryRunnable(bundleContext) {
      protected void runWithoutRegistry() throws Exception {
        bundleContext.registerService(Namespace.class, new LocalNamespace(), null);
        bundleContext.registerService(ContainerTypeDescription.class, new ContainerTypeDescription("ecf.local", new LocalRemoteServiceContainerInstantiator(), "Local Container Instantiator", false, false), null); //$NON-NLS-1$//$NON-NLS-2$
      }
    });
  }
View Full Code Here

  public void start(final BundleContext context) throws Exception {

    SafeRunner.run(new ExtensionRegistryRunnable(context) {
      protected void runWithoutRegistry() throws Exception {
        context.registerService(Namespace.class, new CompositeNamespace(), null);
        context.registerService(ContainerTypeDescription.class, new ContainerTypeDescription("ecf.discovery.composite", new CompositeDiscoveryContainerInstantiator(), "Composite Discovery Container", true, false), null); //$NON-NLS-1$ //$NON-NLS-2$
        context.registerService(ContainerTypeDescription.class, new ContainerTypeDescription("ecf.singleton.discovery", new SingletonDiscoveryContainerInstantiator(), "Composite Discovery Container Locator", true, false), null); //$NON-NLS-1$ //$NON-NLS-2$
        context.registerService(ContainerTypeDescription.class, new ContainerTypeDescription("ecf.discovery.composite.locator", new CompositeDiscoveryContainerInstantiator(), "Composite Discovery Container Locator"), null); //$NON-NLS-1$ //$NON-NLS-2$
        context.registerService(ContainerTypeDescription.class, new ContainerTypeDescription("ecf.discovery.composite.advertiser", new CompositeDiscoveryContainerInstantiator(), "Composite Discovery Container Advertiser"), null); //$NON-NLS-1$ //$NON-NLS-2$
      }
    });

    final Properties props = new Properties();
    props.put(IDiscoveryLocator.CONTAINER_NAME, CompositeDiscoveryContainer.NAME);
View Full Code Here

  @Override
  public void start(final BundleContext context) throws Exception {
    SafeRunner.run(new ExtensionRegistryRunnable(context) {
      protected void runWithoutRegistry() throws Exception {
        context.registerService(ContainerTypeDescription.class, new ContainerTypeDescription(J8GenericContainerInstantiator.JAVA8_SERVER_NAME, new J8GenericContainerInstantiator(), "ECF Java8 Generic Server", true, false), null); //$NON-NLS-1$
        context.registerService(ContainerTypeDescription.class, new ContainerTypeDescription(J8GenericContainerInstantiator.JAVA8_CLIENT_NAME, new J8GenericContainerInstantiator(), "ECF Java8 Generic Client", false, false), null); //$NON-NLS-1$
        context.registerService(ContainerTypeDescription.class, new ContainerTypeDescription(J8SSLGenericContainerInstantiator.JAVA8_SSL_CLIENT_NAME, new J8SSLGenericContainerInstantiator(), "ECF Java8 SSL Generic Client", false, false), null); //$NON-NLS-1$
        context.registerService(ContainerTypeDescription.class, new ContainerTypeDescription(J8SSLGenericContainerInstantiator.JAVA8_SSL_SERVER_NAME, new J8SSLGenericContainerInstantiator(), "ECF Java8 SSL Generic Server", true, false), null); //$NON-NLS-1$
        IAdapterManager am = getAdapterManager(context);
        if (am != null) {
          rscAdapterFactories = new ArrayList<IAdapterFactory>();
          IAdapterFactory af = new J8RemoteServiceContainerAdapterFactory();
          am.registerAdapters(af, J8SSLServerSOContainer.class);
View Full Code Here

    r_osgi_tracker.open();
    SafeRunner.run(new ExtensionRegistryRunnable(bc) {
      protected void runWithoutRegistry() throws Exception {
        bc.registerService(Namespace.class, new R_OSGiNamespace(), null);
        bc.registerService(Namespace.class, new R_OSGiRemoteServiceNamespace(), null);
        bc.registerService(ContainerTypeDescription.class, new ContainerTypeDescription(R_OSGiContainerInstantiator.NAME, new R_OSGiContainerInstantiator(), "R_OSGi Container", true, false), null); //$NON-NLS-1$
      }
    });
  }
View Full Code Here

            new TrivialNamespace(TrivialNamespace.NAME), null);
        // And create and register ContainerTypeDescription
        Activator.this.context
            .registerService(
                ContainerTypeDescription.class,
                new ContainerTypeDescription(
                    TrivialContainerInstantiator.NAME,
                    (IContainerInstantiator) new TrivialContainerInstantiator()),
                null);
      }
    });
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.core.ContainerTypeDescription

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.