Package org.eclipse.ecf.core

Examples of org.eclipse.ecf.core.ContainerCreateException


  public IContainer createInstance(ContainerTypeDescription description,
      Object[] parameters) throws ContainerCreateException {
    try {
      return new TwipseContainer();
    } catch (IDCreateException e) {
      throw new ContainerCreateException(e);
    }
  }
View Full Code Here


      Object[] parameters) throws ContainerCreateException {
    ID guid;
    try {
      guid = IDFactory.getDefault().createGUID();
    } catch (IDCreateException e) {
      throw new ContainerCreateException("Exception creating ID",e);
    }
    return new TwitterContainer(guid);
  }
View Full Code Here

              RssClientSOContainer.DEFAULT_KEEPALIVE);
        }
        return new RssClientSOContainer(name, keepAlive.intValue());
      }
    } catch (Exception e) {
      throw new ContainerCreateException(
          "Exception creating RSS container", e);
    }
  }
View Full Code Here

    // which is "/com.mycorp.examples.timeservice.ITimeService"
    try {
      this.httpService.registerServlet(TIMESERVICE_SERVLET_NAME,
          new TimeRemoteServiceHttpServlet(), null, null);
    } catch (Exception e) {
      throw new ContainerCreateException("Could not create Time Service Server Container",e);
    }
  }
View Full Code Here

        new IContainerInstantiator() {
          public IContainer createInstance(
              ContainerTypeDescription description,
              Object[] parameters)
              throws ContainerCreateException {
            throw new ContainerCreateException();
          }

          public String[] getSupportedAdapterTypes(
              ContainerTypeDescription description) {
            return null;
View Full Code Here

        new IContainerInstantiator() {
          public IContainer createInstance(
              ContainerTypeDescription description,
              Object[] parameters)
              throws ContainerCreateException {
            throw new ContainerCreateException();
          }

          public String[] getSupportedAdapterTypes(
              ContainerTypeDescription description) {
            return null;
View Full Code Here

        if (parameters[0] instanceof String)
          return new TrivialContainer(IDFactory.getDefault().createStringID((String) parameters[0]));
      }
      return new TrivialContainer();
    } catch (final IDCreateException e) {
      throw new ContainerCreateException("Exception creating ID for trivial container", e);
    }
  }
View Full Code Here

      Object[] args) throws ContainerCreateException {
    ID guid;
    try {
      guid = IDFactory.getDefault().createGUID();
    } catch (IDCreateException e) {
      throw new ContainerCreateException("Exception creating ID", e);
    }
    return new VBContainer(guid);
  }
View Full Code Here

    }

    public IChatRoomContainer createChatRoomContainer() throws ContainerCreateException {
      XMPPChatRoomContainer chatContainer = null;
      if (ecfConnection == null)
        throw new ContainerCreateException(Messages.XMPPChatRoomManager_EXCEPTION_CONTAINER_DISCONNECTED);
      try {
        chatContainer = new XMPPChatRoomContainer(ecfConnection, connectNamespace);
        addChat(chatContainer);
        return chatContainer;
      } catch (final IDCreateException e) {
        throw new ContainerCreateException(Messages.XMPPChatRoomManager_EXCEPTION_CREATING_CHAT_CONTAINER, e);
      }
    }
View Full Code Here

        if (parameters[0] instanceof String)
          return new RSExampleContainer(IDFactory.getDefault().createStringID((String) parameters[0]));
      }
      return new RSExampleContainer();
    } catch (final IDCreateException e) {
      throw new ContainerCreateException("Exception creating ID for trivial container", e);
    }
  }
View Full Code Here

TOP

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

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.