Skip to content

Commit

Permalink
Register custom filters for reflection
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Kruger <phillip.kruger@gmail.com>
  • Loading branch information
phillip-kruger committed Dec 6, 2023
1 parent 2aeab7f commit 3f87806
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ void registerAutoSecurityFilter(BuildProducer<SyntheticBeanBuildItem> syntheticB
@BuildStep
@Record(ExecutionTime.STATIC_INIT)
void registerAnnotatedUserDefinedRuntimeFilters(BuildProducer<SyntheticBeanBuildItem> syntheticBeans,
BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
OpenApiFilteredIndexViewBuildItem apiFilteredIndexViewBuildItem,
OpenApiRecorder recorder) {
Config config = ConfigProvider.getConfig();
Expand All @@ -256,6 +257,7 @@ void registerAnnotatedUserDefinedRuntimeFilters(BuildProducer<SyntheticBeanBuild
.supplier(recorder.createUserDefinedRuntimeFilters(userDefinedRuntimeFilters))
.done());

reflectiveClass.produce(ReflectiveClassBuildItem.builder(userDefinedRuntimeFilters.toArray(new String[] {})).build());
}

@BuildStep
Expand Down

0 comments on commit 3f87806

Please sign in to comment.