From a22c77c2cf8c25df90ad0a9c565969bc6769500c Mon Sep 17 00:00:00 2001 From: Bauke Scholtz Date: Sat, 16 Sep 2023 09:24:14 -0400 Subject: [PATCH] Revert "Revert "https://github.com/jakartaee/faces/issues/1707 deprecate custom scope events which are unused since 4.0"" This reverts commit 2ac516a7a6a4b222c4d7000c6a3aa7e4443762a2. --- .../java/jakarta/faces/event/PostConstructCustomScopeEvent.java | 2 ++ .../java/jakarta/faces/event/PreDestroyCustomScopeEvent.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/impl/src/main/java/jakarta/faces/event/PostConstructCustomScopeEvent.java b/impl/src/main/java/jakarta/faces/event/PostConstructCustomScopeEvent.java index d44c7e0baf..c1831fdd35 100644 --- a/impl/src/main/java/jakarta/faces/event/PostConstructCustomScopeEvent.java +++ b/impl/src/main/java/jakarta/faces/event/PostConstructCustomScopeEvent.java @@ -36,7 +36,9 @@ * * * @since 2.0 + * @deprecated because {@code CustomScope} has been removed from Faces in favor of CDI. */ +@Deprecated(since = "4.1", forRemoval = true) public class PostConstructCustomScopeEvent extends SystemEvent { // ------------------------------------------------------------ Constructors diff --git a/impl/src/main/java/jakarta/faces/event/PreDestroyCustomScopeEvent.java b/impl/src/main/java/jakarta/faces/event/PreDestroyCustomScopeEvent.java index 4d1a67093e..36e2c775c4 100644 --- a/impl/src/main/java/jakarta/faces/event/PreDestroyCustomScopeEvent.java +++ b/impl/src/main/java/jakarta/faces/event/PreDestroyCustomScopeEvent.java @@ -28,7 +28,9 @@ *

* * @since 2.0 + * @deprecated because {@code CustomScope} has been removed from Faces in favor of CDI. */ +@Deprecated(since = "4.1", forRemoval = true) public class PreDestroyCustomScopeEvent extends SystemEvent { // ------------------------------------------------------------ Constructors