dimas-b commented on code in PR #2680:
URL: https://github.com/apache/polaris/pull/2680#discussion_r2455100562
##########
runtime/service/src/main/java/org/apache/polaris/service/config/ServiceProducers.java:
##########
@@ -139,10 +139,23 @@ public RealmConfig realmConfig(CallContext callContext) {
return callContext.getRealmConfig();
}
+ @Produces
+ @ApplicationScoped
+ public PolarisAuthorizerFactory polarisAuthorizerFactory(
+ AuthorizationConfiguration authorizationConfig,
+ @Any Instance<PolarisAuthorizerFactory> authorizerFactories) {
+ PolarisAuthorizerFactory factory =
+ authorizerFactories
+
.select(Identifier.Literal.of(authorizationConfig.type().getValue()))
Review Comment:
The general approach so far is that anything discoverable via CDI has to be
assumed pluggable / alterable in downstream builds.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]