Package org.eclipse.ecf.core.provider

Examples of org.eclipse.ecf.core.provider.IContainerInstantiator


    return fixture;
  }

  protected ContainerTypeDescription createContainerTypeDescription() {
    return new ContainerTypeDescription(this.getClass().getName(),
        new IContainerInstantiator() {
          public IContainer createInstance(
              ContainerTypeDescription description,
              Object[] parameters)
              throws ContainerCreateException {
            throw new ContainerCreateException();
View Full Code Here


    public TestContainer(ID id) {
      super(id);
    }
  }
  protected ContainerTypeDescription createContainerTypeDescription() {
    return new ContainerTypeDescription(getClass().getName(),new IContainerInstantiator() {

      public IContainer createInstance(
          ContainerTypeDescription description, Object[] parameters)
          throws ContainerCreateException {
        return new TestContainer(IDFactory.getDefault().createGUID());
View Full Code Here

    super.tearDown();
  }

  protected ContainerTypeDescription createContainerTypeDescription() {
    return new ContainerTypeDescription(CONTAINER_TYPE_NAME,
        new IContainerInstantiator() {
          public IContainer createInstance(
              ContainerTypeDescription description,
              Object[] parameters)
              throws ContainerCreateException {
            return new AbstractContainer() {
View Full Code Here

    super.tearDown();
  }

  protected ContainerTypeDescription createContainerTypeDescription() {
    return new ContainerTypeDescription(CONTAINER_TYPE_NAME,
        new IContainerInstantiator() {
          public IContainer createInstance(
              ContainerTypeDescription description,
              Object[] parameters)
              throws ContainerCreateException {
            return new AbstractContainer() {
View Full Code Here

    return Activator.getDefault().getContainerFactory();
  }

  protected ContainerTypeDescription createContainerTypeDescription() {
    return new ContainerTypeDescription(CONTAINER_TYPE_NAME,
        new IContainerInstantiator() {
          public IContainer createInstance(
              ContainerTypeDescription description,
              Object[] parameters)
              throws ContainerCreateException {
            return new AbstractContainer() {
View Full Code Here

    return fixture;
  }

  protected ContainerTypeDescription createContainerTypeDescription() {
    return new ContainerTypeDescription(this.getClass().getName(),
        new IContainerInstantiator() {
          public IContainer createInstance(
              ContainerTypeDescription description,
              Object[] parameters)
              throws ContainerCreateException {
            throw new ContainerCreateException();
View Full Code Here

      throwContainerCreateException("ContainerTypeDescription cannot be null", null, method); //$NON-NLS-1$
    ContainerTypeDescription cd = getDescription0(containerTypeDescription);
    if (cd == null)
      throwContainerCreateException("ContainerTypeDescription '" //$NON-NLS-1$
          + containerTypeDescription.getName() + "' not found", null, method); //$NON-NLS-1$
    IContainerInstantiator instantiator = null;
    try {
      instantiator = cd.getInstantiator();
    } catch (Exception e) {
      throwContainerCreateException("createContainer cannot get IContainerInstantiator for description : " //$NON-NLS-1$
          + containerTypeDescription, e, method);
    }
    // Ask instantiator to actually create instance
    IContainer container = instantiator.createInstance(containerTypeDescription, parameters);
    if (container == null)
      throwContainerCreateException("Instantiator returned null for '" //$NON-NLS-1$
          + cd.getName() + "'", null, method); //$NON-NLS-1$
    // Add to containers map if container.getID() provides a valid value.
    ID containerID = container.getID();
View Full Code Here

   */
  public String[] getSupportedIntents() {
    String method = "getSupportedIntents"; //$NON-NLS-1$
    Trace.entering(ECFPlugin.PLUGIN_ID, ECFDebugOptions.METHODS_ENTERING, this.getClass(), method);
    try {
      IContainerInstantiator ci = getInstantiator();
      return (ci instanceof IRemoteServiceContainerInstantiator) ? ((IRemoteServiceContainerInstantiator) ci).getSupportedIntents(this) : null;
    } catch (Exception e) {
      traceAndLogException(IStatus.ERROR, method, e);
      return null;
    }
View Full Code Here

   */
  public String[] getSupportedConfigs() {
    String method = "getSupportedConfigs"; //$NON-NLS-1$
    Trace.entering(ECFPlugin.PLUGIN_ID, ECFDebugOptions.METHODS_ENTERING, this.getClass(), method);
    try {
      IContainerInstantiator ci = getInstantiator();
      return (ci instanceof IRemoteServiceContainerInstantiator) ? ((IRemoteServiceContainerInstantiator) ci).getSupportedConfigs(this) : null;
    } catch (Exception e) {
      traceAndLogException(IStatus.ERROR, method, e);
      return null;
    }
View Full Code Here

    String method = "getImportedConfigs"; //$NON-NLS-1$
    Trace.entering(ECFPlugin.PLUGIN_ID, ECFDebugOptions.METHODS_ENTERING, this.getClass(), method);
    if (exporterSupportedConfigs == null)
      return null;
    try {
      IContainerInstantiator ci = getInstantiator();
      return (ci instanceof IRemoteServiceContainerInstantiator) ? ((IRemoteServiceContainerInstantiator) ci).getImportedConfigs(this, exporterSupportedConfigs) : null;
    } catch (Exception e) {
      traceAndLogException(IStatus.ERROR, method, e);
      return null;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.core.provider.IContainerInstantiator

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.