Skip to content
Permalink
Browse files
[GERONIMO-6825] also register CdiinterceptorBean automatically
  • Loading branch information
rmannibucau committed Jan 26, 2022
1 parent b468680 commit 3b275bc367f5e2a1a9b0c3329db3f8f8949aaa2b
Showing 1 changed file with 2 additions and 1 deletion.
@@ -24,6 +24,7 @@
import org.apache.openwebbeans.se.CDISeScannerService;
import org.apache.openwebbeans.se.PreScannedCDISeScannerService;
import org.apache.webbeans.component.AbstractProducerBean;
import org.apache.webbeans.component.CdiInterceptorBean;
import org.apache.webbeans.component.InjectionTargetBean;
import org.apache.webbeans.component.ManagedBean;
import org.apache.webbeans.config.OpenWebBeansConfiguration;
@@ -352,7 +353,7 @@ private Stream<? extends Class<?>> findServices(final Properties properties) {
private String registerBeansForReflection(final Context context, final Set<Bean<?>> beans, final Predicate<String> classFilter) {
final boolean includeClassResources = Boolean.parseBoolean(context.getProperty("extension.openwebbeans.classes.includeAsResources"));
return beans.stream()
.filter(ManagedBean.class::isInstance)
.filter(it -> ManagedBean.class.isInstance(it) || CdiInterceptorBean.class.isInstance(it))
.map(Bean::getBeanClass)
.flatMap(this::hierarchy)
.distinct()

0 comments on commit 3b275bc

Please sign in to comment.