Package biz.aQute.bnd.reporter.exporter
Class ReportExporterBuilder
- java.lang.Object
-
- biz.aQute.bnd.reporter.exporter.ReportExporterBuilder
-
public class ReportExporterBuilder extends java.lang.Object
Build theReportExporterService
.
-
-
Field Summary
Fields Modifier and Type Field Description private ReportGeneratorService
_generator
private Processor
_processor
private java.lang.String
_scope
-
Constructor Summary
Constructors Modifier Constructor Description private
ReportExporterBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportExporterService
build()
Build the service.static ReportExporterBuilder
create()
Create a new builder.ReportExporterBuilder
setGenerator(ReportGeneratorService generator)
Set the generator which will be used to generate the reports.ReportExporterBuilder
setProcessor(Processor processor)
Set the processor from which plugins are loaded as well as properties and to which errors are reported.ReportExporterBuilder
setScope(java.lang.String scopeName)
Set a scope for the exporter service.private static void
setupDefaultPlugins(Processor processor)
-
-
-
Field Detail
-
_scope
private java.lang.String _scope
-
_processor
private Processor _processor
-
_generator
private ReportGeneratorService _generator
-
-
Method Detail
-
create
public static ReportExporterBuilder create()
Create a new builder.- Returns:
- the builder
-
setScope
public ReportExporterBuilder setScope(java.lang.String scopeName)
Set a scope for the exporter service. If set, the exporter will ignore report instructions with a different scope.- Parameters:
scopeName
- the scope name, may benull
- Returns:
- the builder
-
setProcessor
public ReportExporterBuilder setProcessor(Processor processor)
Set the processor from which plugins are loaded as well as properties and to which errors are reported.If not set, a default processor is used but the created service will be useless because no instructions will be provided.
- Parameters:
processor
- the processor to use.- Returns:
- the builder
-
setGenerator
public ReportExporterBuilder setGenerator(ReportGeneratorService generator)
Set the generator which will be used to generate the reports.If not set a default generator will be used.
- Parameters:
generator
- the generator service to use- Returns:
- the builder
-
build
public ReportExporterService build()
Build the service.- Returns:
- the service
-
setupDefaultPlugins
private static void setupDefaultPlugins(Processor processor)
-
-