Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contructor of class PrintServiceImpl is not public #13181

Open
Kalexand22 opened this issue Sep 6, 2024 · 0 comments
Open

contructor of class PrintServiceImpl is not public #13181

Kalexand22 opened this issue Sep 6, 2024 · 0 comments

Comments

@Kalexand22
Copy link

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant