jetbrains.buildServer.web.statistics.graph
Class MainConfigXmlGraphProvider

java.lang.Object
  extended by jetbrains.buildServer.web.statistics.graph.DeclarativeValueTypeProvider
      extended by jetbrains.buildServer.web.statistics.graph.MainConfigXmlGraphProvider
All Implemented Interfaces:
MainConfigProcessor, ServerExtension, TeamCityExtension, XmlExternalizable, XmlStorable

public class MainConfigXmlGraphProvider
extends DeclarativeValueTypeProvider
implements MainConfigProcessor

Graph data provider which reads data from main-config.xml file. The graphs are shown on build configuration statistics pages


Field Summary
 
Fields inherited from class jetbrains.buildServer.web.statistics.graph.DeclarativeValueTypeProvider
myServer, myStorage, myValueProviderRegistry
 
Constructor Summary
MainConfigXmlGraphProvider(SBuildServer server, BuildDataStorage storage, ValueProviderRegistry valueProviderRegistry)
          Constructor
 
Method Summary
 void addGraph(XmlGraphBean bean)
           
 java.util.List<XmlGraphBean> getGraphs()
           
 void writeTo(org.jdom.Element parentElement)
          Write data to the JDOM element
 
Methods inherited from class jetbrains.buildServer.web.statistics.graph.DeclarativeValueTypeProvider
dispose, getRegistered, readFrom, registerValueType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jetbrains.buildServer.XmlStorable
readFrom
 
Methods inherited from interface jetbrains.buildServer.XmlExternalizable
writeTo
 

Constructor Detail

MainConfigXmlGraphProvider

public MainConfigXmlGraphProvider(SBuildServer server,
                                  BuildDataStorage storage,
                                  ValueProviderRegistry valueProviderRegistry)
Constructor

Parameters:
server - build server object
storage - build data storage
valueProviderRegistry - registry for value providers for the graphs
Method Detail

addGraph

public void addGraph(XmlGraphBean bean)

getGraphs

public java.util.List<XmlGraphBean> getGraphs()

writeTo

public void writeTo(org.jdom.Element parentElement)
Description copied from interface: XmlExternalizable
Write data to the JDOM element

Specified by:
writeTo in interface XmlExternalizable
Parameters:
parentElement - - parent element to write data to