Skip to content

Commit

Permalink
SmallRye FT 4.0.0: added service provider for CP executor factory
Browse files Browse the repository at this point in the history
  • Loading branch information
michalszynkiewicz committed Jan 16, 2020
1 parent 4ea00a9 commit bc97f64
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,18 @@
import io.quarkus.deployment.builditem.SystemPropertyBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageSystemPropertyBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem;
import io.quarkus.smallrye.faulttolerance.runtime.NoopMetricRegistry;
import io.quarkus.smallrye.faulttolerance.runtime.QuarkusFallbackHandlerProvider;
import io.quarkus.smallrye.faulttolerance.runtime.QuarkusFaultToleranceOperationProvider;
import io.quarkus.smallrye.faulttolerance.runtime.SmallryeFaultToleranceRecorder;
import io.smallrye.faulttolerance.ExecutorFactory;
import io.smallrye.faulttolerance.ExecutorProvider;
import io.smallrye.faulttolerance.FaultToleranceBinding;
import io.smallrye.faulttolerance.FaultToleranceInterceptor;
import io.smallrye.faulttolerance.internal.StrategyCache;
import io.smallrye.faulttolerance.metrics.MetricsCollectorFactory;
import io.smallrye.faulttolerance.propagation.ContextPropagationExecutorFactory;

public class SmallRyeFaultToleranceProcessor {

Expand All @@ -69,12 +72,16 @@ public class SmallRyeFaultToleranceProcessor {
@BuildStep
public void build(BuildProducer<AnnotationsTransformerBuildItem> annotationsTransformer,
BuildProducer<FeatureBuildItem> feature, BuildProducer<AdditionalBeanBuildItem> additionalBean,
BuildProducer<ServiceProviderBuildItem> serviceProvider,
BuildProducer<BeanDefiningAnnotationBuildItem> additionalBda,
Capabilities capabilities,
BuildProducer<SystemPropertyBuildItem> systemProperty) {

feature.produce(new FeatureBuildItem(FeatureBuildItem.SMALLRYE_FAULT_TOLERANCE));

serviceProvider.produce(new ServiceProviderBuildItem(ExecutorFactory.class.getName(),
ContextPropagationExecutorFactory.class.getName()));

Set<DotName> ftAnnotations = new HashSet<>();
ftAnnotations.add(DotName.createSimple(Asynchronous.class.getName()));
ftAnnotations.add(DotName.createSimple(Bulkhead.class.getName()));
Expand Down

0 comments on commit bc97f64

Please sign in to comment.