Skip to content

Commit

Permalink
Added MyFaces @view temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Oct 15, 2024
1 parent a40343d commit abfd16a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.primefaces.util.PropertyDescriptorResolver;

import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
import io.quarkus.arc.deployment.BeanDefiningAnnotationBuildItem;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.annotations.ExecutionTime;
Expand Down Expand Up @@ -170,6 +171,7 @@ void registerForReflection(PrimeFacesRecorder recorder, BuildProducer<Reflective
// TODO: Remove after MyFaces 4.0.3
@BuildStep
void temporaryMyFacesStuff(BuildProducer<AdditionalBeanBuildItem> additionalBean,
BuildProducer<BeanDefiningAnnotationBuildItem> beanDefiningAnnotation,
BuildProducer<ReflectiveClassBuildItem> reflectiveClass) {
additionalBean.produce(AdditionalBeanBuildItem
.unremovableOf(org.apache.myfaces.push.cdi.WebsocketScopeManager.ApplicationScope.class));
Expand All @@ -178,6 +180,9 @@ void temporaryMyFacesStuff(BuildProducer<AdditionalBeanBuildItem> additionalBean
additionalBean.produce(
AdditionalBeanBuildItem.unremovableOf(org.apache.myfaces.push.cdi.WebsocketScopeManager.ViewScope.class));

beanDefiningAnnotation
.produce(new BeanDefiningAnnotationBuildItem(DotName.createSimple(jakarta.faces.annotation.View.class)));

// TODO: remove in MyFaces 4.0.3
reflectiveClass.produce(ReflectiveClassBuildItem.builder("org.apache.myfaces.view.facelets.component.RepeatStatus")
.methods(true).fields(true).build());
Expand Down Expand Up @@ -224,4 +229,4 @@ public List<String> collectImplementors(CombinedIndexBuildItem combinedIndex, St
classes.add(className);
return classes;
}
}
}

0 comments on commit abfd16a

Please sign in to comment.