diff --git a/src/main/java/com/ggang/be/api/comment/facade/EveryGroupCommentFacadeHandler.java b/src/main/java/com/ggang/be/api/comment/facade/EveryGroupCommentFacadeHandler.java index d97b208..e267532 100644 --- a/src/main/java/com/ggang/be/api/comment/facade/EveryGroupCommentFacadeHandler.java +++ b/src/main/java/com/ggang/be/api/comment/facade/EveryGroupCommentFacadeHandler.java @@ -13,10 +13,10 @@ import com.ggang.be.domain.constant.GroupType; import com.ggang.be.domain.group.everyGroup.EveryGroupEntity; import com.ggang.be.domain.user.UserEntity; -import com.ggang.be.global.annotation.Facade; +import com.ggang.be.global.annotation.Handler; import lombok.RequiredArgsConstructor; -@Facade +@Handler @RequiredArgsConstructor public class EveryGroupCommentFacadeHandler implements CommentFacadeHandler { diff --git a/src/main/java/com/ggang/be/api/comment/facade/OnceGroupCommentFacadeHandler.java b/src/main/java/com/ggang/be/api/comment/facade/OnceGroupCommentFacadeHandler.java index 5d549a0..d7c2f56 100644 --- a/src/main/java/com/ggang/be/api/comment/facade/OnceGroupCommentFacadeHandler.java +++ b/src/main/java/com/ggang/be/api/comment/facade/OnceGroupCommentFacadeHandler.java @@ -13,10 +13,10 @@ import com.ggang.be.domain.constant.GroupType; import com.ggang.be.domain.group.onceGroup.OnceGroupEntity; import com.ggang.be.domain.user.UserEntity; -import com.ggang.be.global.annotation.Facade; +import com.ggang.be.global.annotation.Handler; import lombok.RequiredArgsConstructor; -@Facade +@Handler @RequiredArgsConstructor public class OnceGroupCommentFacadeHandler implements CommentFacadeHandler { diff --git a/src/main/java/com/ggang/be/api/comment/registry/CommentRegistry.java b/src/main/java/com/ggang/be/api/comment/registry/CommentRegistry.java index 56c9247..5041b11 100644 --- a/src/main/java/com/ggang/be/api/comment/registry/CommentRegistry.java +++ b/src/main/java/com/ggang/be/api/comment/registry/CommentRegistry.java @@ -3,11 +3,11 @@ import com.ggang.be.api.common.ResponseError; import com.ggang.be.api.exception.GongBaekException; import com.ggang.be.domain.constant.GroupType; +import com.ggang.be.global.annotation.Registry; import java.util.List; import lombok.RequiredArgsConstructor; -import org.springframework.stereotype.Component; -@Component +@Registry @RequiredArgsConstructor public class CommentRegistry { diff --git a/src/main/java/com/ggang/be/global/annotation/Handler.java b/src/main/java/com/ggang/be/global/annotation/Handler.java new file mode 100644 index 0000000..58ba4d9 --- /dev/null +++ b/src/main/java/com/ggang/be/global/annotation/Handler.java @@ -0,0 +1,14 @@ +package com.ggang.be.global.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import org.springframework.stereotype.Component; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +@Component +public @interface Handler { + +} diff --git a/src/main/java/com/ggang/be/global/annotation/Registry.java b/src/main/java/com/ggang/be/global/annotation/Registry.java new file mode 100644 index 0000000..aefd8fb --- /dev/null +++ b/src/main/java/com/ggang/be/global/annotation/Registry.java @@ -0,0 +1,14 @@ +package com.ggang.be.global.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import org.springframework.stereotype.Component; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +@Component +public @interface Registry { + +}