Examples of requires()


Examples of edu.stanford.nlp.pipeline.Annotator.requires()

      Annotator parser = StanfordCoreNLP.getExistingAnnotator("parse");
      if (parser == null) {
        // TODO: these assertions rule out the possibility of alternately named parse/pos annotators
        throw new AssertionError("Failed to get parser - this should not be possible");
      }
      if (parser.requires().contains(Annotator.POS_REQUIREMENT)) {
        Annotator tagger = StanfordCoreNLP.getExistingAnnotator("pos");
        if (tagger == null) {
          throw new AssertionError("Parser required tagger, but failed to find the pos annotator");
        }
        List<Annotator> annotators = Generics.newArrayList();
View Full Code Here

Examples of org.apache.karaf.util.tracker.Services.requires()

                    System.out.println("Ignoring " + classUrl);
                    continue;
                }
                Services services = clazz.getAnnotation(Services.class);
                if (services != null) {
                    for (RequireService req : services.requires()) {
                        String flt = req.filter();
                        if (flt != null && !flt.isEmpty()) {
                            flt = "(&(objectClass=" + req.value().getName() + ")" + flt + ")";
                        } else {
                            flt = "(objectClass=" + req.value().getName() + ")";
View Full Code Here

Examples of org.jvnet.hudson.reactor.TaskGraphBuilder.requires()

                return child.isDirectory() && Items.getConfigFile(child).exists();
            }
        });

        TaskGraphBuilder g = new TaskGraphBuilder();
        Handle loadHudson = g.requires(EXTENSIONS_AUGMENTED).attains(JOB_LOADED).add("Loading global config", new Executable() {
            public void run(Reactor session) throws Exception {
                // JENKINS-8043: some slaves (eg. swarm slaves) are not saved into the config file
                // and will get overwritten when reloading. Make a backup copy now, and re-add them later
                NodeList oldSlaves = slaves;
               
View Full Code Here

Examples of org.jvnet.hudson.reactor.TaskGraphBuilder.requires()

                }
            }
        });

        for (final File subdir : subdirs) {
            g.requires(loadHudson).attains(JOB_LOADED).notFatal().add("Loading job "+subdir.getName(),new Executable() {
                public void run(Reactor session) throws Exception {
                    TopLevelItem item = (TopLevelItem) Items.load(Jenkins.this, subdir);
                    items.put(item.getName(), item);
                }
            });
View Full Code Here

Examples of org.jvnet.hudson.reactor.TaskGraphBuilder.requires()

                    items.put(item.getName(), item);
                }
            });
        }

        g.requires(JOB_LOADED).add("Finalizing set up",new Executable() {
            public void run(Reactor session) throws Exception {
                rebuildDependencyGraph();

                {// recompute label objects - populates the labels mapping.
                    for (Node slave : slaves)
View Full Code Here

Examples of org.jvnet.hudson.reactor.TaskGraphBuilder.requires()

                                        return false;
                                    }
                                });
                            }

                            g.requires(PLUGINS_PREPARED).add("Checking cyclic dependencies",new Executable() {
                                /**
                                 * Makes sure there's no cycle in dependencies.
                                 */
                                public void run(Reactor reactor) throws Exception {
                                    try {
View Full Code Here

Examples of org.jvnet.hudson.reactor.TaskGraphBuilder.requires()

                return child.isDirectory() && Items.getConfigFile(child).exists();
            }
        });

        TaskGraphBuilder g = new TaskGraphBuilder();
        Handle loadHudson = g.requires(InitMilestone.EXTENSIONS_AUGMENTED).attains(InitMilestone.JOB_LOADED).add("Loading global config", new Executable() {

            public void run(Reactor session) throws Exception {
                XmlFile cfg = getConfigFile();
                if (cfg.exists()) {
                    // reset some data that may not exist in the disk file
View Full Code Here

Examples of org.jvnet.hudson.reactor.TaskGraphBuilder.requires()

                items.clear();
            }
        });

        for (final File subdir : subdirs) {
            g.requires(loadHudson).attains(InitMilestone.JOB_LOADED).notFatal().add("Loading job " + subdir.getName(), new Executable() {

                public void run(Reactor session) throws Exception {
                    TopLevelItem item = (TopLevelItem) Items.load(Hudson.this, subdir);
                    items.put(item.getName(), item);
                }
View Full Code Here

Examples of org.jvnet.hudson.reactor.TaskGraphBuilder.requires()

                    items.put(item.getName(), item);
                }
            });
        }

        g.requires(InitMilestone.JOB_LOADED).add("Finalizing set up", new Executable() {

            public void run(Reactor session) throws Exception {
                rebuildDependencyGraph();

                {// recompute label objects - populates the labels mapping.
View Full Code Here

Examples of org.sgx.yuigwt.galleryexplorer.client.api.Module.requires()

      String[] tags = module.tags().split(",");
      for (int j = 0; j < tags.length; j++) {
        moduleTags.add(tags[j]);
     
     
      String[] requires = module.requires().split(",");
      for (int j = 0; j < requires.length; j++) {
        String r = requires[j];
        JsArray<Module> reqs = modulesByRequires.get(r); //
        if(reqs==null) {
          reqs = JsArray.createArray().cast();
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.