Skip to content

Commit

Permalink
[refactor] #110 어노테이션 추가! facade, registry 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
khyojun committed Jan 18, 2025
1 parent c18b196 commit 8f18b94
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
14 changes: 14 additions & 0 deletions src/main/java/com/ggang/be/global/annotation/Handler.java
Original file line number Diff line number Diff line change
@@ -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 {

}
14 changes: 14 additions & 0 deletions src/main/java/com/ggang/be/global/annotation/Registry.java
Original file line number Diff line number Diff line change
@@ -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 {

}

0 comments on commit 8f18b94

Please sign in to comment.