jerryshao commented on code in PR #9475:
URL: https://github.com/apache/gravitino/pull/9475#discussion_r2646593458


##########
core/src/main/java/org/apache/gravitino/GravitinoEnv.java:
##########
@@ -537,14 +539,28 @@ private void initGravitinoServerComponents() {
 
     SchemaOperationDispatcher schemaOperationDispatcher =
         new SchemaOperationDispatcher(catalogManager, entityStore, 
idGenerator);
-    SchemaHookDispatcher schemaHookDispatcher = new 
SchemaHookDispatcher(schemaOperationDispatcher);
+    SchemaDispatcher schemaDispatcherProxy =
+        (SchemaDispatcher)
+            Proxy.newProxyInstance(
+                SchemaDispatcher.class.getClassLoader(),
+                new Class[] {SchemaDispatcher.class},
+                new OperationDispatcherInterceptor(

Review Comment:
   I'm not so familar with this interceptor mechanism, how does it reduce the 
number of calling?



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