Examples of register()


Examples of freenet.config.SubConfig.register()


  public static FCPServer maybeCreate(Node node, NodeClientCore core, Config config, PersistentRequestRoot root) throws IOException, InvalidConfigValueException {
    SubConfig fcpConfig = new SubConfig("fcp", config);
    short sortOrder = 0;
    fcpConfig.register("enabled", true, sortOrder++, true, false, "FcpServer.isEnabled", "FcpServer.isEnabledLong", new FCPEnabledCallback(core));
    fcpConfig.register("ssl", false, sortOrder++, true, true, "FcpServer.ssl", "FcpServer.sslLong", new FCPSSLCallback());
    fcpConfig.register("port", FCPServer.DEFAULT_FCP_PORT /* anagram of 1984, and 1000 up from old number */, 2, true, true, "FcpServer.portNumber", "FcpServer.portNumberLong", new FCPPortNumberCallback(core), false);
    fcpConfig.register("bindTo", NetworkInterface.DEFAULT_BIND_TO, sortOrder++, true, true, "FcpServer.bindTo", "FcpServer.bindToLong", new FCPBindtoCallback(core));
    fcpConfig.register("allowedHosts", NetworkInterface.DEFAULT_BIND_TO, sortOrder++, true, true, "FcpServer.allowedHosts", "FcpServer.allowedHostsLong", new FCPAllowedHostsCallback(core));
    fcpConfig.register("allowedHostsFullAccess", NetworkInterface.DEFAULT_BIND_TO, sortOrder++, true, true, "FcpServer.allowedHostsFullAccess", "FcpServer.allowedHostsFullAccessLong", new FCPAllowedHostsFullAccessCallback(core));

Examples of gov.nasa.jpf.autodoc.types.info.CollectedInfo.register()

        SubtypeInfo subtype = analyzeSubtype(cls, info);
       
        if (subtype != null) {
          if (subtype.getType().equals("InstructionFactory")) {
            if (isAnalysisEnabled(type, AnalysisType.IFACTORIES.weight)) {
              newInfo.register(subtype);
            }
          } else if (subtype.getType().equals("Listener")) {
            if (isAnalysisEnabled(type, AnalysisType.LISTENERS.weight)) {
              newInfo.register(subtype);
            }

Examples of hudson.plugins.emailext.ScriptSandbox.register()

        binding.setVariable("out", listener.getLogger());
       
        GroovyShell shell = new GroovyShell(cl, binding, cc);

        if (sandbox != null) {
            sandbox.register();
        }

        return shell;
    }

Examples of hudson.slaves.ComputerListener.register()

                                            public void onOnline(Computer C, TaskListener t) {
                                                latch.countDown();
                                                unregister();
                                            }
                                        };
        waiter.register();

        DumbSlave s = createSlave(l, env);
        latch.await();

        return s;

Examples of info.growl.Growl.register()

    final Growl growl = GrowlUtils.getGrowlInstance(QUICK_J_UNIT);
    growl.addNotification(TEST_OK, true);
    growl.addNotification(TEST_FAILURE, true);
    growl.addNotification(TEST_ERROR, true);
    try {
      growl.register();
    } catch (GrowlException e) {
    }

    JUnitCore.addTestRunListener(new org.eclipse.jdt.junit.TestRunListener() {
      private TemplateParser parser = new TemplateParser();

Examples of io.dropwizard.jersey.DropwizardResourceConfig.register()

                    test = new JerseyTest() {
                        @Override
                        protected Application configure() {
                            DropwizardResourceConfig config = DropwizardResourceConfig.forTesting(new MetricRegistry());
                            for (Class<?> provider : providers) {
                                config.register(provider);
                            }
                            for (Map.Entry<String, Object> property : properties.entrySet()) {
                                config.property(property.getKey(), property.getValue());
                            }
                            config.register(new JacksonMessageBodyProvider(mapper, validator));

Examples of io.netty.channel.DefaultEventLoopGroup.register()

                    .addLast(e1, h3)
                    .addLast(e1, h4)
                    .addLast(e1, h5)
                    .addLast(e1, "recorder", h6);

            l.register(ch).sync().channel().connect(localAddr).sync();

            final LinkedList<EventType> expectedEvents = events(inbound, 8192);

            Throwable cause = new Throwable();

Examples of io.netty.channel.EventLoopGroup.register()

        EventLoopGroup eventLoopGroup = process.getEventLoop().getEventLoopGroup();
        Channel channel = NioOutputStreamChannel.create(process, out);
        channel.config().setAutoRead(false);
        channel.pipeline().addLast( new DataEventHandler( process, handle ));
        eventLoopGroup.register(channel);

        return channel.newSucceededFuture();
    }
}

Examples of io.netty.channel.nio.NioEventLoopGroup.register()

        // Do something which takes some amount of time

        // Register channel again on eventloop
        Channel channel = future.channel();
        group.register(channel).addListener(new ChannelFutureListener() {
            @Override
            public void operationComplete(ChannelFuture future) throws Exception {
                if (future.isSuccess()) {
                    System.out.println("Channel registered");
                } else {

Examples of java.nio.channels.DatagramChannel.register()

                ch.socket().bind(req.address);
                if (req.address == null || req.address.getPort() == 0) {
                    req.address = (InetSocketAddress) ch.socket()
                            .getLocalSocketAddress();
                }
                ch.register(selector, SelectionKey.OP_READ, req);
                channels.put(req.address, ch);

                getListeners().fireServiceActivated(this, req.address,
                        req.handler, req.config);
            } catch (Throwable t) {
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.