Inline serverChannelInitializer 04/104304/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 8 Feb 2023 10:56:36 +0000 (11:56 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 8 Feb 2023 15:15:05 +0000 (15:15 +0000)
This bean is used only as an argument, inline it to make things clearer.

JIRA: NETCONF-951
Change-Id: Ie461efe86b7b80d087ad41770e8c75275db4b170
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/mdsal-netconf-impl/src/main/resources/OSGI-INF/blueprint/mdsal-netconf-impl.xml

index eb8f650feefd65242862471288d4c311a7326775..288991df5f532795269caefa4aa877b63072de4b 100644 (file)
         </argument>
     </bean>
 
-    <bean id="serverChannelInitializer"
-          class="org.opendaylight.netconf.impl.ServerChannelInitializer">
+    <bean id="netconfServerDispatcherImpl"
+          class="org.opendaylight.netconf.impl.NetconfServerDispatcherImpl">
         <argument>
-            <bean class="org.opendaylight.netconf.impl.NetconfServerSessionNegotiatorFactory">
-                <argument ref="global-timer"/>
-                <argument ref="aggregatedNetconfOperationServiceFactoryMappers"/>
-                <argument ref="sessionIdProvider"/>
-                <argument value="${connection-timeout-millis}"/>
-                <argument ref="netconfMonitoringService"/>
+            <bean class="org.opendaylight.netconf.impl.ServerChannelInitializer">
+                <argument>
+                    <bean class="org.opendaylight.netconf.impl.NetconfServerSessionNegotiatorFactory">
+                        <argument ref="global-timer"/>
+                        <argument ref="aggregatedNetconfOperationServiceFactoryMappers"/>
+                        <argument ref="sessionIdProvider"/>
+                        <argument value="${connection-timeout-millis}"/>
+                        <argument ref="netconfMonitoringService"/>
+                    </bean>
+                </argument>
             </bean>
         </argument>
-    </bean>
-
-    <bean id="netconfServerDispatcherImpl"
-          class="org.opendaylight.netconf.impl.NetconfServerDispatcherImpl">
-        <argument ref="serverChannelInitializer"/>
         <argument ref="globalBossGroup"/>
         <argument ref="globalWorkerGroup"/>
     </bean>