Skip to content

Commit

Permalink
PDF test
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Apr 19, 2024
1 parent a9c438d commit e278cc9
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,15 @@ void registerForReflection(PrimeFacesRecorder recorder, BuildProducer<Reflective
// Chart XDev models
classNames.addAll(collectClassesInPackage(combinedIndex, "software.xdev.chartjs.model"));

// method reflection
reflectiveClass.produce(
ReflectiveClassBuildItem.builder(classNames.toArray(new String[0])).methods(true)
.fields(true).build());

// constructor reflection

// Exporters
classNames.clear();
classNames.add("com.lowagie.text.pdf.PdfPTable");
classNames.addAll(collectImplementors(combinedIndex, org.primefaces.component.export.Exporter.class.getName()));
classNames.addAll(collectImplementors(combinedIndex, org.primefaces.component.export.ExporterOptions.class.getName()));

// method reflection
reflectiveClass.produce(
ReflectiveClassBuildItem.builder(classNames.toArray(new String[0])).constructors(true).methods(false)
.fields(false).build());
ReflectiveClassBuildItem.builder(classNames.toArray(new String[0])).methods(true)
.fields(true).build());

// neither
reflectiveClass.produce(
Expand Down

0 comments on commit e278cc9

Please sign in to comment.