Examples of createInstance()


Examples of org.eclipse.ecf.core.identity.Namespace.createInstance()

    if(aTargetID == null) {
      targetID = new DnsSdServiceTypeID();
    } else {
      final Namespace ns = getConnectNamespace();
      try {
        targetID = (DnsSdServiceTypeID) ns.createInstance(new Object[]{aTargetID});
      } catch(IDCreateException e) {
        throw new ContainerConnectException(e);
      }
    }
   
View Full Code Here

Examples of org.eclipse.ecf.core.provider.IContainerInstantiator.createInstance()

    } 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

Examples of org.eclipse.ecf.core.sharedobject.provider.ISharedObjectInstantiator.createInstance()

    }
    if (instantiator == null)
      //throw new SharedObjectCreateException(Messages.SharedObjectFactory_Exception_Create_Instantiator + cd.getName() + Messages.SharedObjectFactory_Exception_Create_Instantiator_Null);
      throw new SharedObjectCreateException("Instantiator for SharedObjectDescription " + cd.getName() + " is null"); //$NON-NLS-1$ //$NON-NLS-2$
    // Ask instantiator to actually create instance
    return instantiator.createInstance(desc, args);
  }

  /*
   * (non-Javadoc)
   *
 
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.rest.identity.RestNamespace.createInstance()

    RestNamespace namespace = new RestNamespace(RestNamespace.NAME, null);
    Object[] parameters;
    try {
      String url = "http://www.twitter.com";
      parameters = new Object[] {new URL(url)};
      ID id = namespace.createInstance(parameters);
      assertEquals(url, id.getName());
    } catch (MalformedURLException e) {
      fail();
    }   
  }
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.rpc.identity.RpcNamespace.createInstance()

    RpcNamespace namespace = new RpcNamespace(RpcNamespace.NAME, null);
    Object[] parameters;
    try {     
      String url = RpcConstants.TEST_ECHO_TARGET;
      parameters = new Object[] {new URL(url)};
      ID id = namespace.createInstance(parameters);
      assertEquals(url, id.getName());
    } catch (MalformedURLException e) {
      fail();
    }   
  }
View Full Code Here

Examples of org.eclipse.jst.jsf.context.symbol.source.ISymbolSourceProviderFactory.createInstance()

        final Map  map = new HashMap();
       
        for (final Iterator it = JSFCommonPlugin.getSymbolSourceProviders().iterator(); it.hasNext();)
        {
            final ISymbolSourceProviderFactory  factory = (ISymbolSourceProviderFactory) it.next();
            final ISymbolSourceProvider provider = factory.createInstance(_jspFile.getProject());
           
            final ISymbol[] symbols = provider.getSymbols(_jspFile, scopeMask);
           
            for (int i = 0; i < symbols.length; i++)
            {
View Full Code Here

Examples of org.eclipse.ui.internal.cheatsheets.registry.CheatSheetItemExtensionElement.createInstance()

    for (int i = 0; i < itemExtensionContainerList.size(); i++) {
      CheatSheetItemExtensionElement itemExtensionElement = (CheatSheetItemExtensionElement) itemExtensionContainerList.get(i);

      if (itemExtensionElement.getItemAttribute().equals(item.getNodeName())) {
        AbstractItemExtensionElement itemElement = itemExtensionElement.createInstance();
        if(itemElement != null) {
          itemElement.handleAttribute(item.getNodeValue());
          al.add(itemElement);
        }
      }
View Full Code Here

Examples of org.exist.numbering.NodeIdFactory.createInstance()

        final NodeIdFactory nodeFactory = getDatabase().getNodeFactory();
        nodeId[0] = nodeFactory.documentNodeId();
        if (size == 1) {
            return;
        }
        NodeId nextId = nodeFactory.createInstance();
        NodeImpl next = (NodeImpl)getFirstChild();
        while (next != null) {
            computeNodeIds(nextId, next.nodeNumber);
            next = (NodeImpl)next.getNextSibling();
            nextId = nextId.nextSibling();
View Full Code Here

Examples of org.glassfish.contextpropagation.ContextViewFactory.createInstance()

      } else {
        ViewImpl view = new ViewImpl(prefix);
        Entry entry = Entry.createViewEntryInstance(DUMMY_VALUE , EnumSet.of(PropagationMode.LOCAL),
            view).init(isOriginator, ContextBootstrap.getContextAccessController().isEveryoneAllowedToRead(prefix));
        mapFinder.getMapAndCreateIfNeeded().put(prefix,  entry);
        entry.value = factory.createInstance(view);
        entry.propagationModes = factory.getPropagationModes();
        return (T) entry.getValue();
      }
    }
View Full Code Here

Examples of org.glassfish.contextpropagation.SerializableContextFactory.createInstance()

         * the length of context data.
         */
        error(MessageID.ERROR_NO_WORK_CONTEXT_FACTORY, key, className);
        return null;
      } else {
        WLSContext ctx = factory.createInstance();
        if (ctx != null) {
          ctx.readContext(ois);
        }
        value = ctx;
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.