Package org.eclipse.ecf.provider.generic

Examples of org.eclipse.ecf.provider.generic.GenericContainerInstantiator


*/
public class GenericClientJavaApplication extends AbstractGenericClientApplication {

  protected ISharedObjectContainer createContainer() throws ContainerCreateException {
    IContainerFactory containerFactory = ContainerFactory.getDefault();
    containerFactory.addDescription(new ContainerTypeDescription("ecf.generic.client", new GenericContainerInstantiator(), null)); //$NON-NLS-1$
    return (ISharedObjectContainer) containerFactory.createContainer("ecf.generic.client"); //$NON-NLS-1$
  }
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

TOP

Related Classes of org.eclipse.ecf.provider.generic.GenericContainerInstantiator

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.