Examples of register()


Examples of com.google.nigori.client.NigoriDatastore.register()

  public void setGetDelete() throws NigoriCryptographyException, IOException, UnauthorisedException {
    NigoriDatastore nigori = getStore();

    for (int i = 0; i < AcceptanceTests.REPEAT; ++i) {// check we can do this more than once
      try {
        assertTrue("Not registered" + i, nigori.register());
        assertTrue("Not a clean store " + i, nigori.getIndices().isEmpty());

        for (IndexValue iv : testCases) {// once round for each
          final Index index = iv.index;
          final Revision revision = iv.revvalue.getRevision();

Examples of com.googlecode.mgwt.mvp.client.history.MGWTPlaceHistoryHandler.register()

    AppHistoryObserver historyObserver = new AppHistoryObserver();

    MGWTPlaceHistoryHandler historyHandler = new MGWTPlaceHistoryHandler(historyMapper, historyObserver);

    historyHandler.register(clientFactory.getPlaceController(), clientFactory.getEventBus(), new HomePlace());
    historyHandler.handleCurrentHistory();

  }

  private void createPhoneDisplay(ClientFactory clientFactory) {

Examples of com.googlecode.objectify.ObjectifyFactory.register()

 
  @Provides @Singleton
  ObjectifyFactory getOfyFact() {
    log.fine("Configuring ObjectifyFactory");
    ObjectifyFactory fact = new ObjectifyFactory();
    fact.register(WebdavUser.class);
    fact.register(WebdavFileData.class);
    fact.register(WebdavFolder.class);
    fact.register(WebdavFile.class);
    return fact;
  }

Examples of com.googlecode.objectify.test.util.TestObjectifyFactory.register()

    ofy().save().entity(hs).now();

    // Now we need to read it using the non-zip annotation
    TestObjectifyFactory fact2 = new TestObjectifyFactory();
    fact2.register(HasSerialize.class);

    HasSerialize fetched = fact2.begin().load().type(HasSerialize.class).id(hs.id).now();
    assert fetched.numbers.equals(hs.numbers);
  }

Examples of com.googlecode.wicketwebbeans.model.ComponentRegistry.register()

    private static final long serialVersionUID = 2572855853286541120L;

    public DatePage()
    {
        ComponentRegistry registry = new ComponentRegistry();
        registry.register(Date.class, YUIDateField.class);
        registry.register(java.sql.Date.class, YUIDateField.class);
        registry.register(Time.class, YUIDateField.class);
        registry.register(Timestamp.class, YUIDateField.class);
        //registry.register(Calendar.class, YUIDateField.class);

Examples of com.hazelcast.spi.ExecutionService.register()

            queueSize = ps.getPartitionCount() * 2;
        }

        try {
            String executorName = MapReduceUtil.buildExecutorName(name);
            es.register(executorName, maxThreadSize, queueSize, ExecutorType.CACHED);
        } catch (Exception ignore) {
            // After destroying the proxy and recreating it the executor
            // might already be registered, so we can ignore this exception.
            ILogger logger = nodeEngine.getLogger(NodeJobTracker.class);
            logger.finest("This is likely happened due to a previously cancelled job", ignore);

Examples of com.hellblazer.slp.ServiceScope.register()

        ServiceURL url2 = new ServiceURL("service:http://foo.bar/one");

        localScope.addServiceListener(serviceListener, "(" + SERVICE_TYPE
                                                       + "=service:http)");

        UUID reference1 = localScope.register(url1,
                                              new HashMap<String, String>());
        localScope.register(url2, new HashMap<String, String>());
        localScope.setProperties(reference1, new HashMap<String, String>());
        localScope.unregister(reference1);

Examples of com.hp.hpl.jena.graph.GraphEventManager.register()

    public void testEventRegister()
    {
        Graph g = getGraph();
        GraphEventManager gem = g.getEventManager();
        assertSame( gem, gem.register( new RecordingListener() ) );
    }

    /**
        Test that we can safely unregister a listener that isn't registered.
     */
 

Examples of com.hp.hpl.jena.rdf.model.Model.register()

            {
                System.out.println("Remove: "+s) ;
            }
        } ;
       
        m.register(listener) ;
       
        Resource s = m.createResource("http://example/s") ;
        Property p = m.createProperty("http://example/o") ;
        m.add(s, p, "123") ;
    }

Examples of com.hp.hpl.jena.util.MonitorModel.register()

        Statement s4 = base.createStatement(ar, pr, "4");
        Statement s5 = base.createStatement(ar, pr, "5");
       
        MonitorModel monitor = new MonitorModel(base);
        RecordingModelListener listener = new RecordingModelListener();
        monitor.register(listener);
       
        // base data
        base.add(s1);
        base.add(s2);
        base.add(s3);
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.