Examples of bootstrap()


Examples of com.clearnlp.component.tagger.EnglishOnlinePOSTagger.bootstrap()

    {
      reader.open(UTInput.createBufferedFileReader(trainFile));
     
      while ((tree = reader.next()) != null)
      {
        component.bootstrap(tree);
        if (++total%5000 == 0) LOG.info(".");
      }
     
      reader.close();
    }
View Full Code Here

Examples of com.foreach.across.core.AcrossContext.bootstrap()

    }

    context.addModule( new TestModule( "one" ) );
    context.addModule( new TestModule( "two" ) );

    context.bootstrap();

    return context;
  }

  protected static class TestModule extends AcrossModule
View Full Code Here

Examples of com.netflix.governator.guice.annotations.Bootstrap.bootstrap()

                    Bootstrap bootstrap = type.getAnnotation(Bootstrap.class);
                    if (bootstrap != null) {
                      boolean added = false;
                      // This is a suite
                      if (!bootstrap.value().equals(Bootstrap.NullLifecycleInjectorBuilderSuite.class)) {
                            LOG.info("Adding Suite {}", bootstrap.bootstrap());
                        suites
                              .addBinding()
                              .to(bootstrap.value())
                              .asEagerSingleton();
                        added = true;
View Full Code Here

Examples of com.netflix.governator.guice.annotations.Bootstrap.bootstrap()

                              .to(bootstrap.value())
                              .asEagerSingleton();
                        added = true;
                      }
                      // This is a bootstrap module
                      if (!bootstrap.bootstrap().equals(Bootstrap.NullBootstrapModule.class)) {
                        Preconditions.checkState(added==false, bootstrap.annotationType().getName() + " already added as a LifecycleInjectorBuilderSuite");
                        added = true;
                            LOG.info("Adding BootstrapModule {}", bootstrap.bootstrap());
                          bootstrapModules
                              .addBinding()
View Full Code Here

Examples of com.netflix.governator.guice.annotations.Bootstrap.bootstrap()

                      }
                      // This is a bootstrap module
                      if (!bootstrap.bootstrap().equals(Bootstrap.NullBootstrapModule.class)) {
                        Preconditions.checkState(added==false, bootstrap.annotationType().getName() + " already added as a LifecycleInjectorBuilderSuite");
                        added = true;
                            LOG.info("Adding BootstrapModule {}", bootstrap.bootstrap());
                          bootstrapModules
                              .addBinding()
                              .to(bootstrap.bootstrap())
                              .asEagerSingleton();
                          // Make this annotation injectable into any plain Module
View Full Code Here

Examples of com.netflix.governator.guice.annotations.Bootstrap.bootstrap()

                        Preconditions.checkState(added==false, bootstrap.annotationType().getName() + " already added as a LifecycleInjectorBuilderSuite");
                        added = true;
                            LOG.info("Adding BootstrapModule {}", bootstrap.bootstrap());
                          bootstrapModules
                              .addBinding()
                              .to(bootstrap.bootstrap())
                              .asEagerSingleton();
                          // Make this annotation injectable into any plain Module
                          builder.withAdditionalBootstrapModules(forAnnotation(annot));
                      }
                      // This is a plain guice module
View Full Code Here

Examples of com.netflix.governator.guice.annotations.Bootstrap.bootstrap()

                      }
                      // This is a plain guice module
                      if (!bootstrap.module().equals(Bootstrap.NullModule.class)) {
                        Preconditions.checkState(added==false, bootstrap.annotationType().getName() + " already added as a BootstrapModule");
                        added = true;
                            LOG.info("Adding Module {}", bootstrap.bootstrap());
                          builder.withAdditionalModuleClasses(bootstrap.module());
                          // Make the annotation injectable into the module
                          builder.withAdditionalBootstrapModules(forAnnotation(annot));
                      }
                           
View Full Code Here

Examples of javapayload.stager.Stager.bootstrap()

      final String[] args = new String[Integer.parseInt(getParameter("argc"))];
      for (int i = 0; i < args.length; i++) {
        args[i] = getParameter("arg" + i);
      }
      final Stager stager = (Stager) Class.forName("javapayload.stager." + args[0]).newInstance();
      stager.bootstrap(args);
    } catch (final Exception ex) {
      ex.printStackTrace();
    }
  }
}
View Full Code Here

Examples of net.tomp2p.dht.PeerDHT.bootstrap()

          }
    } else {
      final Peer peer = new PeerBuilder(Number160.createHash("client")).ports(1235).start();
            List<PeerAddress> bootstrap = new ArrayList<PeerAddress>();
            bootstrap.add(new PeerAddress(Number160.createHash("master"), "localhost", 1234,1234));
            peer.bootstrap().bootstrapTo(bootstrap).start();

            peer.objectDataReply(new ObjectDataReply() {
                public Object reply(PeerAddress sender, Object request) throws Exception {
                    System.err.println("client received: " + request.toString());
                    return "pong";
View Full Code Here

Examples of net.tomp2p.p2p.Peer.bootstrap()

          .start();
      futureDiscover.awaitUninterruptibly();
      logger.info(String.format("Discover of %s %s", pa,
          (futureDiscover.isSuccess()) ? "succeeded" : "failed"));
      // Future Bootstrap - slave
      FutureBootstrap futureBootstrap = peer.bootstrap()
          .setInetAddress(masterPeerAddress).setPorts(masterPeerPort)
          .start();
      futureBootstrap.awaitUninterruptibly();
      logger.info(String.format("Bootstrap of %s %s", pa,
          (futureDiscover.isSuccess()) ? "succeeded" : "failed"));
View Full Code Here
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.