Class ReportRendererFactoryImpl
java.lang.Object
org.codehaus.mojo.versions.reporting.ReportRendererFactoryImpl
- All Implemented Interfaces:
ReportRendererFactory
@Named
@Singleton
public class ReportRendererFactoryImpl
extends Object
implements ReportRendererFactory
Factory for report renderers
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends ReportRenderer,U>
TcreateReportRenderer(String reportName, org.apache.maven.doxia.sink.Sink sink, Locale locale, U model, boolean allowSnapshots) Creates a new ReportRenderer instance for the given report renderer name.
-
Field Details
-
DEPENDENCY_UPDATES_REPORT
- See Also:
-
DEPENDENCY_UPDATES_AGGREGATE_REPORT
- See Also:
-
PLUGIN_UPDATES_REPORT
- See Also:
-
PLUGIN_UPDATES_AGGREGATE_REPORT
- See Also:
-
PROPERTY_UPDATES_REPORT
- See Also:
-
PROPERTY_UPDATES_AGGREGATE_REPORT
- See Also:
-
PARENT_UPDATES_REPORT
- See Also:
-
-
Constructor Details
-
ReportRendererFactoryImpl
@Inject public ReportRendererFactoryImpl(org.codehaus.plexus.i18n.I18N i18N)
-
-
Method Details
-
createReportRenderer
public <T extends ReportRenderer,U> T createReportRenderer(String reportName, org.apache.maven.doxia.sink.Sink sink, Locale locale, U model, boolean allowSnapshots) throws IllegalArgumentException Creates a new ReportRenderer instance for the given report renderer name.- Specified by:
createReportRendererin interfaceReportRendererFactory- Type Parameters:
T- concrete class of the report rendererU- class of the model being rendered- Parameters:
reportName- name of the report to generatesink- sink to use for renderinglocale- locale to use for renderingmodel- data to renderallowSnapshots- whether snapshots should be included- Returns:
- new report renderer
- Throws:
IllegalArgumentException- thrown if the report with the given name could not be found
-