Examples of register()


Examples of com.nexirius.framework.dataviewer.ViewerCreatorMap.register()

    }

    public void init() {
        ViewerCreatorMap map = factory.getViewerCreatorMap();

        map.register(MainModel.class, new SwingViewerCreator(MainViewer.class));
        map.register(MediaArrayModel.class, new MediaArrayLayout(), false);

        try {
            // create an editor for the main model
            DataViewer editor = getFactory().createViewer(mainModel, true);

Examples of com.packtpub.java7.concurrency.chapter3.recipe6.task.MyPhaser.register()

   
    // Creates 5 students and register them in the phaser
    Student students[]=new Student[5];
    for (int i=0; i<students.length; i++){
      students[i]=new Student(phaser);
      phaser.register();
    }
   
    // Create 5 threads for the students and start them
    Thread threads[]=new Thread[students.length];
    for (int i=0; i<students.length; i++) {

Examples of com.peterhi.obsolete.RemoteRegistry.register()

    for (int i = 0; i < 100; i++) {
      friendNames.add("Friend " + i);
    }
   
    AboutMeImpl aboutMe = new AboutMeImpl(registry, "Jason", "True name is YZW.", friendNames);
    registry.register("aboutMe", aboutMe);
    Thread.sleep(5000);
    aboutMe.fireChanged("Notice 1!!!");
    Thread.sleep(5000);
    aboutMe.fireChanged("Notice 2!!!");
  }

Examples of com.peterhi.working.Registry.register()

         
        }.run();*/
      }
    };
   
    registry.register(AboutMeListener.class, listener);
    aboutMe.addAboutMeListener(listener);
  }
 
}

Examples of com.pholser.junit.quickcheck.internal.generator.GeneratorRepository.register()

    }

    @Test public void autoGeneratorDoesNotAllowItselfToBeRegistered() {
        GeneratorRepository repo = new GeneratorRepository(null);

        repo.register(new Fields<>(Object.class));

        thrown.expect(IllegalArgumentException.class);
        repo.generatorFor(Object.class);
    }

Examples of com.sardak.antform.types.ButtonBar.register()

    controlBar.setAlign(BorderLayout.EAST);
    controlBar.setMargins(3, 3, 3, 3);
    ControlPanel controlPanel = control.getPanel();
    controlBar.applyStylesheet(controlPanel);
    controlPanel.addButtonPanel(controlBar.getPanel());
    controlBar.register(actionRegistry);

    control.show();
    System.exit(0);
  }
}

Examples of com.sk89q.bukkit.util.CommandsManagerRegistration.register()

        };
        // Set the proper command injector
        commands.setInjector(new SimpleInjector(this));

        final CommandsManagerRegistration reg = new CommandsManagerRegistration(this, commands);
        reg.register(TopLevelCommands.class);

        if(config.realisticRandoms)
            try {
                random = SecureRandom.getInstance("SHA1PRNG");
            } catch (NoSuchAlgorithmException e1) {

Examples of com.sk89q.worldedit.util.io.Closer.register()

    @Override
    public LocalSession load(UUID id) throws IOException {
        File file = getPath(id);
        Closer closer = Closer.create();
        try {
            FileReader fr = closer.register(new FileReader(file));
            BufferedReader br = closer.register(new BufferedReader(fr));
            return gson.fromJson(br, LocalSession.class);
        } catch (JsonParseException e) {
            throw new IOException(e);
        } catch (FileNotFoundException e) {

Examples of com.sleepycat.je.rep.utilint.ServiceDispatcher.register()

     */
    @Override
    public void run() {
        final ServiceDispatcher serviceDispatcher =
            repNode.getServiceDispatcher();
        serviceDispatcher.register(SERVICE_NAME, channelQueue);
        LoggerUtils.logMsg
            (logger, envImpl, formatter, Level.FINE, "Acceptor started");
        SocketChannel channel = null;
        try {
            while (true) {

Examples of com.spotify.helios.serviceregistration.ServiceRegistrar.register()

  private static final AtomicInteger registryIdCounter = new AtomicInteger();

  protected ServiceRegistrar mockServiceRegistrar() {
    final ServiceRegistrar registrar = mock(ServiceRegistrar.class);
    when(registrar.register(any(ServiceRegistration.class))).thenAnswer(new Answer<Object>() {
      @Override
      public Object answer(final InvocationOnMock invocationOnMock) throws Throwable {
        return mock(ServiceRegistrationHandle.class);
      }
    });
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.