net.sourceforge.cruisecontrol
Class CruiseControlConfig

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.CruiseControlConfig

public class CruiseControlConfig
extends java.lang.Object

The <cruisecontrol> element is the root element of the configuration, and acts as a container to the rest of the configuration elements.

Author:
Jerome Lacoste

Field Summary
static boolean FAIL_UPON_MISSING_PROPERTY
           
static java.lang.String LABEL_INCREMENTER
           
 
Constructor Summary
CruiseControlConfig(org.jdom.Element ccElement)
           
CruiseControlConfig(org.jdom.Element ccElement, CruiseControlController controller)
           
CruiseControlConfig(org.jdom.Element ccElement, XmlResolver xmlResolver)
           
CruiseControlConfig(org.jdom.Element ccElement, XmlResolver xmlResolver, CruiseControlController controller)
           
 
Method Summary
 void add(DefaultPropertiesPlugin property)
          Defines a name/value pair used in configuration.
 void add(IncludeProjectsPlugin project)
          Add projects defined in other configuration files.
 void add(PluginPlugin plugin)
          Registers a classname with an alias.
 void add(ProjectInterface project)
          Defines a basic unit of work
 void add(SystemPlugin system)
          Currently just a placeholder for the element, which in its turn is just a placeholder for the element.
 int getMaxNbThreads()
           
 ProjectInterface getProject(java.lang.String name)
           
 java.util.Set getProjectNames()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABEL_INCREMENTER

public static final java.lang.String LABEL_INCREMENTER
See Also:
Constant Field Values

FAIL_UPON_MISSING_PROPERTY

public static final boolean FAIL_UPON_MISSING_PROPERTY
See Also:
Constant Field Values
Constructor Detail

CruiseControlConfig

public CruiseControlConfig(org.jdom.Element ccElement)
                    throws CruiseControlException

CruiseControlConfig

public CruiseControlConfig(org.jdom.Element ccElement,
                           CruiseControlController controller)
                    throws CruiseControlException

CruiseControlConfig

public CruiseControlConfig(org.jdom.Element ccElement,
                           XmlResolver xmlResolver)
                    throws CruiseControlException

CruiseControlConfig

public CruiseControlConfig(org.jdom.Element ccElement,
                           XmlResolver xmlResolver,
                           CruiseControlController controller)
                    throws CruiseControlException
Method Detail

getMaxNbThreads

public int getMaxNbThreads()

add

public void add(DefaultPropertiesPlugin property)
Defines a name/value pair used in configuration.

Parameters:
property -

add

public void add(IncludeProjectsPlugin project)
         throws CruiseControlException
Add projects defined in other configuration files.

Throws:
CruiseControlException

add

public void add(SystemPlugin system)
Currently just a placeholder for the element, which in its turn is just a placeholder for the element. We expect that in the future, more system-level features can be configured under this element.

Parameters:
system -

add

public void add(PluginPlugin plugin)
Registers a classname with an alias.

Parameters:
plugin -

add

public void add(ProjectInterface project)
Defines a basic unit of work

Parameters:
project -

getProject

public ProjectInterface getProject(java.lang.String name)

getProjectNames

public java.util.Set getProjectNames()