This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/branch-0.9 by this push:
new 5600ceed67 [#7012] improve (core): Add eventListenerManager function
in GravitinoEnv (#7021)
5600ceed67 is described below
commit 5600ceed67f04bc80be5662e1d7bc490c48e28de
Author: Yuhui <[email protected]>
AuthorDate: Tue Apr 22 09:29:55 2025 +0800
[#7012] improve (core): Add eventListenerManager function in GravitinoEnv
(#7021)
### What changes were proposed in this pull request?
Make it possible to obtain the eventListenerManager from GravitinoEnv
### Why are the changes needed?
Fix: #7012
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Manually test
---
core/src/main/java/org/apache/gravitino/GravitinoEnv.java | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/core/src/main/java/org/apache/gravitino/GravitinoEnv.java
b/core/src/main/java/org/apache/gravitino/GravitinoEnv.java
index b33f2525a2..91febb4220 100644
--- a/core/src/main/java/org/apache/gravitino/GravitinoEnv.java
+++ b/core/src/main/java/org/apache/gravitino/GravitinoEnv.java
@@ -355,6 +355,15 @@ public class GravitinoEnv {
return futureGrantManager;
}
+ /**
+ * Get the EventListenerManager associated with the Gravitino environment.
+ *
+ * @return The EventListenerManager instance.
+ */
+ public EventListenerManager eventListenerManager() {
+ return eventListenerManager;
+ }
+
public void start() {
metricsSystem.start();
eventListenerManager.start();