Package edu.uga.galileo.voci.plugins.search

Examples of edu.uga.galileo.voci.plugins.search.SearchPlugin


    if (request.getParameterValues("useSearchPlugin") != null) {
      ArrayList<Integer> results = null;
      ArrayList<Integer> preProcessResults = null;

      String[] usePlugins = request.getParameterValues("useSearchPlugin");
      SearchPlugin plugin;
      for (String usePlugin : usePlugins) {
        try {
          Class c = Class
              .forName("edu.uga.galileo.voci.plugins.search."
                  + usePlugin);
          Constructor constructor = c.getConstructor((Class[]) null);
          plugin = (SearchPlugin) constructor
              .newInstance((Object[]) null);

          Logger.debug("Pre-processing search using " + usePlugin
              + ".");

          preProcessResults = plugin.processRequest(request);
          if (preProcessResults == null) {
            // if a plugin responds with null, we skip it, b/c
            // it's not behaving properly
            Logger.warn(usePlugin + " returned a null value "
                + "in search pre-processing");
View Full Code Here

TOP

Related Classes of edu.uga.galileo.voci.plugins.search.SearchPlugin

Copyright © 2018 www.massapicom. 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.