Examples of register()


Examples of com.datastax.driver.core.Cluster.register()

        poolingOptions.setCoreConnectionsPerHost(HostDistance.LOCAL, 24);
        poolingOptions.setCoreConnectionsPerHost(HostDistance.REMOTE, 24);
        poolingOptions.setMaxConnectionsPerHost(HostDistance.LOCAL, 32);
        poolingOptions.setMaxConnectionsPerHost(HostDistance.REMOTE, 32);

        cluster.register(new Host.StateListener() {
            @Override
            public void onAdd(Host host) {
                log.info("host " + host + " added");
            }

Examples of com.esotericsoftware.kryo.Kryo.register()

        static public final int port = 54555;

        // This registers objects that are going to be sent over the network.
        static public void register (EndPoint endPoint) {
                Kryo kryo = endPoint.getKryo();
                kryo.register(RegisterName.class);
                kryo.register(String[].class);
                kryo.register(UpdateNames.class);
                kryo.register(ChatMessage.class);
        }

Examples of com.example.customer.CustomerFactory.register()

   
    public void testChangeSummaryOnDataGraphWithInt() throws Exception {
     
      HelperContext hc = HelperProvider.getDefaultContext();
      CustomerFactory factory = CustomerFactory.INSTANCE;
      factory.register(hc);
      Customer customer = factory.createCustomer();
      Account account = factory.createAccount();
      customer.setAccount(account);
      DataObject customerDO = (DataObject) customer;
      DataGraph dg = SDOUtil.createDataGraph();

Examples of com.foreach.across.core.context.AcrossApplicationContext.register()

    contextInfo = AcrossContextUtils.getContextInfo( acrossContext );
  }

  protected AcrossConfigurableApplicationContext createApplicationContext() {
    AcrossApplicationContext ctx = new AcrossApplicationContext();
    ctx.register( AcrossTestContextConfiguration.class );

    return ctx;
  }

  @Override

Examples of com.foreach.across.core.context.ModuleBeanOrderComparator.register()

                                                                            resolvableType.getRawClass() )
                                            .keySet() ) {

      if ( beanFactory.isAutowireCandidate( beanName, dd, resolver ) ) {
        Object bean = beanFactory.getBean( beanName );
        comparator.register( bean, Ordered.HIGHEST_PRECEDENCE );
        beans.add( (T) bean );
      }
    }

    if ( includeModuleInternals ) {

Examples of com.foreach.across.modules.web.context.AcrossWebApplicationContext.register()

  }

  @Override
  protected AcrossConfigurableApplicationContext createApplicationContext() {
    AcrossWebApplicationContext wac = new AcrossWebApplicationContext();
    wac.register( AcrossTestWebContextConfiguration.class );

    servletContext = new MockAcrossServletContext();
    wac.setServletContext( servletContext );

    return wac;

Examples of com.foreach.across.modules.web.template.WebTemplateRegistry.register()

          NamedWebTemplateProcessor.class,
          true );
      WebTemplateRegistry registry = webTemplateRegistry();

      for ( NamedWebTemplateProcessor webTemplateProcessor : namedProcessors ) {
        registry.register( webTemplateProcessor );
      }
    }
  }
}

Examples of com.forgeessentials.core.commands.ForgeEssentialsCommandBase.register()

            return;

        for (CommandMapping cmdData : dispatcher.getCommands())
        {
            ForgeEssentialsCommandBase command = new WECommandWrapper(cmdData);
            command.register();

            // register additional permissions
            if (cmdData.getDescription().getPermissions().size() > 0)
                for (int i = 1; i < cmdData.getDescription().getPermissions().size(); i++)
                    PermissionsManager.registerPermission(cmdData.getDescription().getPermissions().get(i), RegisteredPermValue.OP);

Examples of com.github.tomakehurst.wiremock.client.WireMock.register()

  }
 
  @Test
  public void proxiesToHostSpecifiedOnCommandLine() {
    WireMock otherServerClient = start8084ServerAndCreateClient();
    otherServerClient.register(get(urlEqualTo("/proxy/ok?working=yes")).willReturn(aResponse().withStatus(HTTP_OK)));
    startRunner("--proxy-all", "http://localhost:8084");
   
    WireMockResponse response = testClient.get("/proxy/ok?working=yes");
    assertThat(response.statusCode(), is(HTTP_OK));
  }

Examples of com.google.code.gaeom.ObjectStore.register()

 
  @Test
  public void testNameRegistration()
  {
    ObjectStore os = ObjectStore.Factory.create();
    os.register("Foo", Foo.class);

    ObjectStoreSession oss = os.beginSession();
    oss.store(new Foo("Fred Flintstone")).now();
    oss.store(new Foo("Barney Rubble")).now();
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.