Examples of register()


Examples of org.apache.zookeeper.ZooKeeper.register()

  @Private
  @Unstable
  protected synchronized ZooKeeper getNewZooKeeper()
      throws IOException, InterruptedException {
    ZooKeeper zk = new ZooKeeper(zkHostPort, zkSessionTimeout, null);
    zk.register(new ForwardingWatcher());
    return zk;
  }

}

Examples of org.arquillian.spacelift.tool.ToolRegistry.register()

        ToolRegistry registry = new ToolRegistryImpl();

        toolRegistry.set(registry);
        log.log(Level.FINE, "Registered Tool Registry");

        registry.register(DownloadTool.class);
        registry.register(UnzipTool.class);

        toolRegistryInitializedEvent.fire(new ToolRegistryInitialized());
    }
}

Examples of org.auraframework.clientlibrary.ClientLibraryResolverRegistry.register()

        super(name);
    }

    public void testRegister() {
        ClientLibraryResolverRegistry reg = ClientLibraryResolverRegistryImpl.INSTANCE;
        reg.register(null);

        ClientLibraryResolver nullValues = new ClientLibraryResolver() {
            @Override
            public String getName() {
                return null;

Examples of org.beangle.security.core.session.MemSessionRegistry.register()

    SessionRegistry registry = new MemSessionRegistry();
    for (int i = 0; i < sessionNum; i++) {
      String random = RandomStringUtils.randomAlphanumeric(21);
      Authentication authentication = new UsernamePasswordAuthentication(new MockPrincipal(
          random, String.valueOf(RandomUtils.nextInt(profileNum))), random);
      registry.register(random, authentication);
    }

//    ConcurrentSessionStrategy controller = new ConcurrentSessionStrategy();
//    controller.setProfileProvider(profileProvider);
//    controller.setSessionRegistry(registry);

Examples of org.beangle.security.core.session.SessionRegistry.register()

    SessionRegistry registry = new MemSessionRegistry();
    for (int i = 0; i < sessionNum; i++) {
      String random = RandomStringUtils.randomAlphanumeric(21);
      Authentication authentication = new UsernamePasswordAuthentication(new MockPrincipal(
          random, String.valueOf(RandomUtils.nextInt(profileNum))), random);
      registry.register(random, authentication);
    }

//    ConcurrentSessionStrategy controller = new ConcurrentSessionStrategy();
//    controller.setProfileProvider(profileProvider);
//    controller.setSessionRegistry(registry);

Examples of org.brixcms.registry.ExtensionPointRegistry.register()

    public Brix(BrixConfig config) {
        this.config = config;

        final ExtensionPointRegistry registry = config.getRegistry();

        registry.register(RepositoryInitializer.POINT, new BrixRepositoryInitializer());

        registry.register(JcrNodeWrapperFactory.POINT, SiteRootNode.FACTORY);
        registry.register(JcrNodeWrapperFactory.POINT, WebRootNode.FACTORY);
        registry.register(JcrNodeWrapperFactory.POINT, FolderNode.FACTORY);
        registry.register(JcrNodeWrapperFactory.POINT, GlobalContainerNode.FACTORY);

Examples of org.bukkit.command.CommandMap.register()

        }
        for (CommandInfo command : registered) {
            DynamicPluginCommand cmd = new DynamicPluginCommand(command.getAliases(),
                    command.getDesc(), "/" + command.getAliases()[0] + " " + command.getUsage(), executor, command.getRegisteredWith(), plugin);
            cmd.setPermissions(command.getPermissions());
            commandMap.register(plugin.getDescription().getName(), cmd);
        }
        return true;
    }

    public CommandMap getCommandMap() {

Examples of org.bukkit.command.SimpleCommandMap.register()

        Map<String, Command> knownCommands = BukkitCommandUtil.getKnownCommandsFromSimpleCommandMap(scm);
        String lowerLabel = bgc.getName().trim().toLowerCase();
        knownCommands.remove(lowerLabel);
      }
     
      if (scm.register(MCore.get().getDescription().getName(), bgc))
      {
        ret = true;
      }
    }
   

Examples of org.cafesip.sipunit.RegisterSession.register()

   */
  public void testSubscription()
  {
    // Ensure Alice is not registered
    RegisterSession registerSession = new RegisterSession(getAlicePhone());
    registerSession.register(null, 0);
   
    SubscribeSession session = new SubscribeSession(getAlicePhone(), "reg");
    Request subscribe = session.newInitialSubscribe(100, getAliceUri()); // 1
    session.sendRequest(subscribe, Response.OK); // 2
   

Examples of org.cloudfoundry.client.lib.CloudFoundryOperations.register()

      IProgressMonitor monitor) throws CoreException {
    SubMonitor progress = SubMonitor.convert(monitor);
    progress.beginTask("Connecting", IProgressMonitor.UNKNOWN); //$NON-NLS-1$
    try {
      CloudFoundryOperations client = createClient(location, userName, password, selfSigned);
      client.register(userName, password);
    }
    catch (RestClientException e) {
      throw CloudErrorUtil.toCoreException(e);
    }
    catch (RuntimeException e) {
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.