From 40e22f3861bade090ecf88e8d2477f9e074b8359 Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 4 May 2018 17:45:05 +0900 Subject: [PATCH] ing --- .../container/configuration/ContainerConfiguration.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/loafle/overflow/container/configuration/ContainerConfiguration.java b/src/main/java/com/loafle/overflow/container/configuration/ContainerConfiguration.java index 738756a..26f79e5 100644 --- a/src/main/java/com/loafle/overflow/container/configuration/ContainerConfiguration.java +++ b/src/main/java/com/loafle/overflow/container/configuration/ContainerConfiguration.java @@ -53,7 +53,7 @@ public class ContainerConfiguration { @Bean(Client.CHANNEL_HANDLERS) public List channelHandlers() { - List chs = Arrays.asList(new RPCClientHandler()); + List chs = Arrays.asList(this.rpcClientHandler()); if (null != this.extraChannelHandlers) { chs.addAll(this.extraChannelHandlers); } @@ -71,6 +71,11 @@ public class ContainerConfiguration { return new JSONRPCClientCodec(this.objectMapper); } + @Bean(Container.RPC_CLIENT_CODEC) + public RPCClientHandler rpcClientHandler() { + return new RPCClientHandler(); + } + @Bean({Container.RPC_INVOKER, Container.RPC_REGISTRY}) public RPCRegistry rpcRegistry() { return new RPCRegistry();