org.pentaho.chart.plugin
Class ChartPluginFactory
java.lang.Object
org.pentaho.chart.plugin.ChartPluginFactory
public class ChartPluginFactory
- extends Object
- Author:
- wseyler
This is a factory class that returns the desired implementation of IChartPlugin based either
on the chart.properties document or on the requested class.
Method Summary |
static IChartPlugin |
getInstance()
Creates an instance of the IChartPlugin as defined in the chart.properties document if one
doesn't already exist. |
static IChartPlugin |
getInstance(String className)
Returns an instance of the IChartPlugin from the className. |
getInstance
public static IChartPlugin getInstance()
throws ChartProcessingException
- Creates an instance of the IChartPlugin as defined in the chart.properties document if one
doesn't already exist. If one exists it will return that one.
- Returns:
- an implementation of the IChartPlugin
- Throws:
ChartProcessingException
getInstance
public static IChartPlugin getInstance(String className)
throws ChartProcessingException
- Returns an instance of the IChartPlugin from the className. Logs errors and
returns null if the class couldn't be created.
- Parameters:
className
-
- Returns:
-
- Throws:
ChartProcessingException