collado-mike commented on code in PR #465:
URL: https://github.com/apache/polaris/pull/465#discussion_r1854949369


##########
polaris-service/src/main/java/org/apache/polaris/service/PolarisApplication.java:
##########
@@ -226,7 +230,17 @@ public void run(PolarisApplicationConfig configuration, 
Environment environment)
         new PolarisCallContextCatalogFactory(
             entityManagerFactory, metaStoreManagerFactory, taskExecutor, 
fileIOFactory);
 
-    PolarisAuthorizer authorizer = new 
PolarisAuthorizerImpl(configurationStore);
+    ConcurrentHashMap<RealmContext, EntityCache> realmEntityCache = new 
ConcurrentHashMap<>();
+    PolarisGrantManager.Factory factory =
+        new EntityCacheGrantManager.EntityCacheGrantManagerFactory(

Review Comment:
   The `getGrantManagerForRealm` method implemented by this factory calls 
`delegateGrantManagerFactory.getGrantManagerForRealm(realm)`, which is invoking 
the `getGrantManagerForRealm` method on the `MetaStoreManagerFactory`. The 
`EntityCacheGrantManagerFactory` constructor takes in a 
`PolarisGrantManager.Factory` argument - here, we're passing in the 
`MetaStoreManagerFactory` as the delegate implementation.



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