Package biz.aQute.bnd.reporter.exporter
Class ReportExporterBuilder
- java.lang.Object
-
- biz.aQute.bnd.reporter.exporter.ReportExporterBuilder
-
public class ReportExporterBuilder extends java.lang.ObjectBuild theReportExporterService.
-
-
Field Summary
Fields Modifier and Type Field Description private ReportGeneratorService_generatorprivate Processor_processorprivate java.lang.String_scope
-
Constructor Summary
Constructors Modifier Constructor Description privateReportExporterBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportExporterServicebuild()Build the service.static ReportExporterBuildercreate()Create a new builder.ReportExporterBuildersetGenerator(ReportGeneratorService generator)Set the generator which will be used to generate the reports.ReportExporterBuildersetProcessor(Processor processor)Set the processor from which plugins are loaded as well as properties and to which errors are reported.ReportExporterBuildersetScope(java.lang.String scopeName)Set a scope for the exporter service.private static voidsetupDefaultPlugins(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)
-
-