-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor : Tag 도메인 서비스 빈 등록 방식 수정(#122)
- Loading branch information
1 parent
ca22485
commit 5fecd36
Showing
4 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...src/main/kotlin/com/bamyanggang/domainmodule/domain/tag/config/TagServiceConfiguration.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.bamyanggang.domainmodule.domain.tag.config | ||
|
||
import com.bamyanggang.domainmodule.domain.tag.repository.TagRepository | ||
import com.bamyanggang.domainmodule.domain.tag.service.TagAppender | ||
import com.bamyanggang.domainmodule.domain.tag.service.TagReader | ||
import com.bamyanggang.domainmodule.domain.tag.service.TagRemover | ||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
|
||
@Configuration | ||
class TagServiceConfiguration( | ||
private val tagRepository: TagRepository | ||
) { | ||
|
||
@Bean | ||
fun tagAppender(): TagAppender { | ||
return TagAppender(tagRepository) | ||
} | ||
|
||
@Bean | ||
fun tagReader(): TagReader { | ||
return TagReader(tagRepository) | ||
} | ||
|
||
@Bean | ||
fun tagModifier(): TagRemover { | ||
return TagRemover(tagRepository) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters