
io.github.pmckeown.dependencytrack.finding.report.FindingsReportMarshallerService Maven / Gradle / Ivy
package io.github.pmckeown.dependencytrack.finding.report;
import javax.inject.Singleton;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
@Singleton
class FindingsReportMarshallerService {
Marshaller getMarshaller() throws JAXBException {
JAXBContext jaxbContext = JAXBContext.newInstance(FindingsReport.class);
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
return marshaller;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy