Skip to content

Commit

Permalink
refactor - logging Decorator 네이밍 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Stark-Industries0417 committed Feb 1, 2025
1 parent 6953403 commit 4de8cc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package game.server.config

import game.server.websocket.GameWebSocketHandler
import game.server.websocket.LoggingWebSocketHandlerDecorator
import game.server.websocket.LoggingRouterDecorator
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.web.reactive.config.WebFluxConfigurer
Expand All @@ -12,7 +11,7 @@ import org.springframework.web.reactive.socket.server.support.WebSocketHandlerAd
open class WebSocketConfig : WebFluxConfigurer {

@Bean
open fun webSocketHandlerMapping(loggingWebSocketHandlerDecorator: LoggingWebSocketHandlerDecorator): SimpleUrlHandlerMapping {
open fun webSocketHandlerMapping(loggingWebSocketHandlerDecorator: LoggingRouterDecorator): SimpleUrlHandlerMapping {
return SimpleUrlHandlerMapping()
.apply {
urlMap = mapOf("/ws/game" to loggingWebSocketHandlerDecorator)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import reactor.core.publisher.Flux
import reactor.core.publisher.Mono

@Component
class LoggingWebSocketHandlerDecorator(
class LoggingRouterDecorator(
private val gameRequestRouter: GameRequestRouter,
private val objectMapper: ObjectMapper
) : WebSocketHandler {
Expand Down

0 comments on commit 4de8cc4

Please sign in to comment.