Examples of reset()


Examples of org.cometd.javascript.Latch.reset()

                       "{" +
                       "    if (message.ext1 === 1) message.ext2 = 1;" +
                       "    return message;" +
                       "} " +
                       "});");
        readyLatch.reset(1);
        evaluateScript("cometd.handshake();");
        Assert.assertTrue(readyLatch.await(5000));

        Assert.assertTrue((Boolean)get("ok"));
View Full Code Here

Examples of org.crank.crud.controller.FilterablePageable.reset()

                         final FilterablePageable filterablePageable = pagers().get(mo.getName());
                         if (filterablePageable != null) {
                           crudControllerTarget.addCrudControllerListener(new CrudControllerListenerAdapter() {
               
                          public void afterCreate(CrudEvent event) {
                            filterablePageable.reset();
                }

                public void afterDelete(CrudEvent event) {
                  filterablePageable.reset();
                }
View Full Code Here

Examples of org.cyberneko.html.HTMLScanner.reset()

    tagBalancer.setDocumentSource(htmlScanner);
    htmlScanner.setDocumentHandler(tagBalancer);

    tagBalancer.reset(config);
    htmlScanner.reset(config);

    XMLInputSource inputSource = new XMLInputSource(null, null, null);
    inputSource.setEncoding("UTF-8");
    inputSource.setCharacterStream(new StringReader(source));
    htmlScanner.setInputSource(inputSource);
View Full Code Here

Examples of org.cyberneko.html.HTMLTagBalancer.reset()

    }

    tagBalancer.setDocumentSource(htmlScanner);
    htmlScanner.setDocumentHandler(tagBalancer);

    tagBalancer.reset(config);
    htmlScanner.reset(config);

    XMLInputSource inputSource = new XMLInputSource(null, null, null);
    inputSource.setEncoding("UTF-8");
    inputSource.setCharacterStream(new StringReader(source));
View Full Code Here

Examples of org.cyberneko.html.filters.NamespaceBinder.reset()

    if (config.getFeature("http://xml.org/sax/features/namespaces")) {
      NamespaceBinder namespaceBinder = new NamespaceBinder();
      namespaceBinder.setDocumentHandler(handler);
      namespaceBinder.setDocumentSource(tagBalancer);
      namespaceBinder.reset(config);
      tagBalancer.setDocumentHandler(namespaceBinder);
    } else {
      tagBalancer.setDocumentHandler(handler);
    }
View Full Code Here

Examples of org.cyclop.web.components.pagination.BootstrapPagingNavigator.reset()

          public long getInitialItemsPerPage() {
            return um.readPreferences().getPagerImportItems();
          }
        });
    container.add(importResultPager);
    model.registerOnChangeListener(o -> importResultPager.reset());
    return model;
  }

  private void initUploadOptions(Form<?> form) {
    CheckBox continueWithErrors = new CheckBox("continueWithErrors");
View Full Code Here

Examples of org.directmemory.CacheStore.reset()

    assertNotNull(pojo2);
    assertEquals("test2", pojo2.name);
    assertNotNull(pojo3);
    assertEquals("test3", pojo3.name);
    logger.debug("addAndRetrieve " + cache.toString());
    cache.reset();
  }
 
   
  @AfterClass
  public static void checkPerformance() {
View Full Code Here

Examples of org.drools.base.DefaultKnowledgeHelper.reset()

        assertNull( item1.getBlockers() );
        assertEquals( 2, item1.getBlocked().size() );
        assertEquals( 1, item2.getBlockers().size() );
        assertEquals( 1, item3.getBlockers().size() );
       
        kcontext.reset();
        kcontext.setActivation( item2 );
        kcontext.blockMatch( item3 );
        assertEquals( 2, item1.getBlocked().size() );
       
        assertEquals( 1, item2.getBlocked().size() );
View Full Code Here

Examples of org.drools.core.base.DefaultKnowledgeHelper.reset()

        // use same data structure as testAddition
        DefaultKnowledgeHelper kcontext = new DefaultKnowledgeHelper( wm );
        kcontext.setActivation( item1 );
        kcontext.blockMatch( item3 );
       
        kcontext.reset();
        kcontext.setActivation( item2 );
        kcontext.blockMatch( item3 );

        kcontext.unblockAllMatches( item3 );
           
View Full Code Here

Examples of org.drools.core.common.InternalWorkingMemoryEntryPoint.reset()

        this.agenda.clear();

        for ( WorkingMemoryEntryPoint ep : this.entryPoints.values() ) {
            // clear the state for each entry point
            InternalWorkingMemoryEntryPoint iep = (InternalWorkingMemoryEntryPoint) ep;
            iep.reset();
        }

        this.handleFactory.clear( handleId,
                                  handleCounter );
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.