Skip to content

Commit

Permalink
Fix unsatisfied resolution on QuarkusSecurityIntegration in Quarkus 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
vsevel committed Oct 12, 2023
1 parent 0a7f097 commit 32b2d62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import io.quarkiverse.ironjacamar.runtime.IronJacamarRecorder;
import io.quarkiverse.ironjacamar.runtime.IronJacamarSupport;
import io.quarkiverse.ironjacamar.runtime.QuarkusIronJacamarLogger;
import io.quarkiverse.ironjacamar.runtime.security.QuarkusSecurityIntegration;
import io.quarkus.arc.BeanDestroyer;
import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
import io.quarkus.arc.deployment.BeanContainerBuildItem;
Expand Down Expand Up @@ -169,6 +170,12 @@ void registerSingletonSyntheticBeans(BuildProducer<SyntheticBeanBuildItem> produ
mc.returnValue(null);
})
.done());

producer.produce(SyntheticBeanBuildItem.configure(QuarkusSecurityIntegration.class)
.scope(BuiltinScope.DEPENDENT.getInfo())
.unremovable()
.createWith(recorder.createSecurityIntegration())
.done());
}

@BuildStep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public Function<SyntheticCreationalContext<CachedConnectionManager>, CachedConne
};
}

public Function<SyntheticCreationalContext<QuarkusSecurityIntegration>, QuarkusSecurityIntegration> createSecurityIntegration() {
return context -> new QuarkusSecurityIntegration();
}

public void initDefaultBootstrapContext(BeanContainer beanContainer) {
TransactionIntegration transactionIntegration = beanContainer.beanInstance(TransactionIntegration.class);
SecurityIntegration securityIntegration = beanContainer.beanInstance(QuarkusSecurityIntegration.class);
Expand Down

0 comments on commit 32b2d62

Please sign in to comment.