org.jenkinsci.plugins.viewer
Class ProjectCollector

java.lang.Object
  extended by org.jenkinsci.plugins.viewer.ProjectCollector

public class ProjectCollector
extends Object

Provides static methods to initialize the list of projects once per view and not for every xpath config.

Author:
c031

Constructor Summary
ProjectCollector()
           
 
Method Summary
static List<hudson.model.AbstractProject> getProjectsList()
          Returns the list of all projects.
static void init()
          Initialize the list of all projects.
static void setProjectsListForTest(List<hudson.model.AbstractProject> testProjects)
          Set the projects list for unit tests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectCollector

public ProjectCollector()
Method Detail

init

public static void init()
Initialize the list of all projects.


getProjectsList

public static List<hudson.model.AbstractProject> getProjectsList()
Returns the list of all projects. Needs to be initialized before.

Returns:
the list of all projects.

setProjectsListForTest

public static void setProjectsListForTest(List<hudson.model.AbstractProject> testProjects)
Set the projects list for unit tests



Copyright © 2004-2012. All Rights Reserved.