Skip to content

Commit 3210d58

Browse files
committed
[BE] refactor: kurento manager 순환 참조 방지 (#98)
Signed-off-by: EunJiJung <bianbbc87@gmail.com>
1 parent 01eaefc commit 3210d58

File tree

1 file changed

+4
-3
lines changed
  • src/backend/signaling-server/src/main/java/com/asyncgate/signaling_server/config

1 file changed

+4
-3
lines changed

src/backend/signaling-server/src/main/java/com/asyncgate/signaling_server/config/KurentoConfig.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
import com.asyncgate.signaling_server.support.handler.KurentoHandler;
1010
import org.kurento.client.KurentoClient;
1111
import org.springframework.beans.factory.annotation.Value;
12-
import org.springframework.context.annotation.Bean;
13-
import org.springframework.context.annotation.Configuration;
12+
import org.springframework.context.annotation.*;
1413
import org.springframework.messaging.simp.SimpMessagingTemplate;
1514
import org.springframework.web.socket.config.annotation.EnableWebSocket;
1615
import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
@@ -36,12 +35,14 @@ public class KurentoConfig implements WebSocketMessageBrokerConfigurer {
3635

3736
private final FilterChannelInterceptor filterChannelInterceptor;
3837
private final WebSocketHandshakeInterceptor webSocketHandshakeInterceptor;
38+
39+
@Lazy
3940
private final SimpMessagingTemplate messagingTemplate;
4041
private final WebClientUtil webClientUtil;
4142

4243
public KurentoConfig(FilterChannelInterceptor filterChannelInterceptor,
4344
WebSocketHandshakeInterceptor webSocketHandshakeInterceptor,
44-
SimpMessagingTemplate messagingTemplate,
45+
@Lazy SimpMessagingTemplate messagingTemplate,
4546
WebClientUtil webClientUtil) {
4647
this.filterChannelInterceptor = filterChannelInterceptor;
4748
this.webSocketHandshakeInterceptor = webSocketHandshakeInterceptor;

0 commit comments

Comments
 (0)