Examples of NodeFactory


Examples of org.apache.tuscany.sca.node.NodeFactory

     * Runs once before running the tests
     */
    @BeforeClass
    public static void setUp() throws Exception {
        try {
        NodeFactory factory = NodeFactory.newInstance();
        node = factory.createNode(new File("src/main/resources/wsdl/wrapped/helloservice.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/wsdl/wrapped/").toURI().toURL().toString()));
        node.start();
        }catch(Throwable e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of org.apache.tuscany.sca.node.NodeFactory

    /**
     * Runs once before the tests
     */
    @BeforeClass
    public static void setUp() throws Exception {
        NodeFactory factory = NodeFactory.newInstance();
        node = factory.createNode(new File("src/main/resources/wsdl/wrapped/standard-types-service.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/wsdl/wrapped/").toURI().toURL().toString()));
        node.start();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.NodeFactory

    /**
     * Runs before each test method
     */
    @BeforeClass
    public static void setUp() throws Exception {
        NodeFactory factory = NodeFactory.newInstance();
        node = factory.createNode(new File("src/main/resources/wsdl/wrapped/primitivesservice.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/wsdl/wrapped/").toURI().toURL().toString()));
        node.start();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.NodeFactory

     * Runs before each test method
     */
    @BeforeClass
    public static void setUp() throws Exception {
        try {
      NodeFactory factory = NodeFactory.newInstance();
            node = factory.createNode(new File("src/main/resources/generics-service.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString()));
            node.start();
        } catch(Throwable e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of org.apache.tuscany.sca.node.NodeFactory

     * Runs once before running the tests
     */
    @BeforeClass
    public static void setUp() throws Exception {
        try {
            NodeFactory factory = NodeFactory.newInstance();
            node = factory.createNode(new File("src/main/resources/doclitbarewsdl.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString()));
            node.start();
        } catch (Throwable e) {
            // @Ignore("TUSCANY-2398")
            e.printStackTrace();
View Full Code Here

Examples of org.apache.tuscany.sca.node.NodeFactory

     * Runs once before running the tests
     */
    @BeforeClass
    public static void setUp() throws Exception {
        try {
            NodeFactory factory = NodeFactory.newInstance();
            node = factory.createNode(new File("src/main/resources/helloservice.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString()));
            node.start();
        } catch(Throwable e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of org.drools.core.reteoo.builder.NodeFactory

         * MockObjectSink so we can detect assertions and retractions
         */
        final ReteooRuleBase ruleBase = ( ReteooRuleBase ) RuleBaseFactory.newRuleBase();
        BuildContext context = new BuildContext(ruleBase, ruleBase.getReteooBuilder().getIdGenerator() );

        NodeFactory nFacotry = ((ReteooRuleBase) ruleBase).getConfiguration().getComponentFactory().getNodeFactoryService();
        final EntryPointNode entryPoint = nFacotry.buildEntryPointNode( -1, ruleBase.getRete(), context );
        entryPoint.attach(context);
                       
        final ObjectTypeNode objectTypeNode = nFacotry.buildObjectTypeNode( 0, entryPoint, new ClassObjectType( Object.class ), context );
        objectTypeNode.attach(context);

        final MockObjectSink sink = new MockObjectSink();
        objectTypeNode.addObjectSink( sink );
      
View Full Code Here

Examples of org.htmlparser.NodeFactory

     * i.e. for tag names or attribute names or values,
     * so the Parser context is provided.
     */
    public void setNodeFilter (NodeFilter filter, Parser context)
    {
        NodeFactory factory;
        PrototypicalNodeFactory proto;
        Set names;
        String name;
        Tag tag;

View Full Code Here

Examples of org.jamesii.core.math.parsetree.NodeFactory

import junit.framework.TestCase;

public class TestNodeFactory extends TestCase {

  public void testCreateNode() {
    NodeFactory nf = new NodeFactory();
    AbsNode n = nf.createNode(AbsNode.class, new ValueNode<>(-2));

    ValueNode<Double> resAbs = n.calc(null);

    assertTrue(resAbs.getValue().compareTo(2.) == 0);

    MultNode m =
        nf.createNode(MultNode.class, new ValueNode<>(-2), new ValueNode<>(3.));

    ValueNode<Double> resMult = m.calc(null);

    assertTrue(resMult.getValue().compareTo(-6.) == 0);
  }
View Full Code Here

Examples of org.jboss.cache.factories.NodeFactory

   {
      DataNode parent = root;
      DataNode child = null;
      Object owner = getOwnerForLock();
      Object name = null;
      NodeFactory factory = NodeFactory.getInstance();
      byte type = isNodeLockingOptimistic()
              ? NodeFactory.NODE_TYPE_OPTIMISTIC_NODE
              : NodeFactory.NODE_TYPE_TREENODE;

      for (int i = 0; i < subtree.size(); i++)
      {
         name = subtree.get(i);
         child = (DataNode) parent.getChild(name);
         if (child == null)
         {
            // Lock the parent, create and add the child
            try
            {
               parent.acquire(owner, state_fetch_timeout, DataNode.LOCK_TYPE_WRITE);
            }
            catch (InterruptedException e)
            {
               log.error("Interrupted while locking" + parent.getFqn(), e);
               throw new CacheException(e.getLocalizedMessage(), e);
            }

            try
            {
               child = factory.createDataNode(type, name,
                       subtree.getFqnChild(i + 1),
                       parent, null, this);
               parent.addChild(name, child);
            }
            finally
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.