adutra commented on code in PR #3024:
URL: https://github.com/apache/polaris/pull/3024#discussion_r2511621800


##########
runtime/service/src/main/java/org/apache/polaris/service/auth/internal/broker/TokenBrokerFactory.java:
##########
@@ -18,11 +18,17 @@
  */
 package org.apache.polaris.service.auth.internal.broker;
 
-import java.util.function.Function;
+import org.apache.polaris.core.PolarisCallContext;
 import org.apache.polaris.core.context.RealmContext;
+import org.apache.polaris.core.persistence.PolarisMetaStoreManager;
 
 /**
  * Factory that creates a {@link TokenBroker} for generating and parsing. The 
{@link TokenBroker} is
  * created based on the realm context.
  */
-public interface TokenBrokerFactory extends Function<RealmContext, 
TokenBroker> {}
+public interface TokenBrokerFactory {
+  TokenBroker create(
+      RealmContext realmContext,
+      PolarisMetaStoreManager metaStoreManager,
+      PolarisCallContext polarisCallContext);

Review Comment:
   `PolarisCallContext` already exposes `RealmContext`, why do we need both 
parameters? Could we pass `CallContext` instead?



-- 
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]

Reply via email to