From 416d3b44df481f6219c95b97435d3d9c29e133f8 Mon Sep 17 00:00:00 2001 From: pancx Date: Wed, 15 Jan 2025 16:10:10 +0800 Subject: [PATCH] [#6067] improvement(core): Support model pre event to Gravitino server fix some issues. --- .../apache/gravitino/listener/api/event/GetModelPreEvent.java | 2 ++ .../gravitino/listener/api/event/RegisterModelPreEvent.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/core/src/main/java/org/apache/gravitino/listener/api/event/GetModelPreEvent.java b/core/src/main/java/org/apache/gravitino/listener/api/event/GetModelPreEvent.java index 0c21e78814b..1161a156886 100644 --- a/core/src/main/java/org/apache/gravitino/listener/api/event/GetModelPreEvent.java +++ b/core/src/main/java/org/apache/gravitino/listener/api/event/GetModelPreEvent.java @@ -20,8 +20,10 @@ package org.apache.gravitino.listener.api.event; import org.apache.gravitino.NameIdentifier; +import org.apache.gravitino.annotation.DeveloperApi; /** Represents an event triggered before getting a model. */ +@DeveloperApi public class GetModelPreEvent extends ModelPreEvent { /** * Create a new {@link GetModelPreEvent} instance. diff --git a/core/src/main/java/org/apache/gravitino/listener/api/event/RegisterModelPreEvent.java b/core/src/main/java/org/apache/gravitino/listener/api/event/RegisterModelPreEvent.java index 76274548348..0a2315c91f1 100644 --- a/core/src/main/java/org/apache/gravitino/listener/api/event/RegisterModelPreEvent.java +++ b/core/src/main/java/org/apache/gravitino/listener/api/event/RegisterModelPreEvent.java @@ -20,9 +20,11 @@ package org.apache.gravitino.listener.api.event; import org.apache.gravitino.NameIdentifier; +import org.apache.gravitino.annotation.DeveloperApi; import org.apache.gravitino.listener.api.info.ModelInfo; /** Represents an event triggered before registering a model. */ +@DeveloperApi public class RegisterModelPreEvent extends ModelPreEvent { private ModelInfo modelInfo;