Skip to content

contructor of class PrintServiceImpl is not public #13181

@Kalexand22

Description

@Kalexand22

Hi,

I have a problem with the class PrintServiceImpl

While some method are protected, the constructor is private, making an extension class impossible, and making extenion of what happend when printing a birt document impossible.

Can you change that?

public class PrintServiceImpl implements PrintService {

private final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
protected static final String FILE_EXTENSION_PDF = ".pdf";

protected PrintRepository printRepo;
protected MetaFiles metaFiles;
protected String attachmentPath;
protected PrintHtmlGenerationService printHtmlGenerationService;
protected PrintPdfGenerationService printPdfGenerationService;

@Inject
public PrintServiceImpl(
PrintRepository printRepo,
MetaFiles metaFiles,
PrintHtmlGenerationService printHtmlGenerationService,
PrintPdfGenerationService printPdfGenerationService) {
this.printRepo = printRepo;
this.metaFiles = metaFiles;
this.attachmentPath = AppService.getFileUploadDir();
this.printHtmlGenerationService = printHtmlGenerationService;
this.printPdfGenerationService = printPdfGenerationService;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions