Inline threadPoolFactory 20/104320/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 8 Feb 2023 18:15:44 +0000 (19:15 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 8 Feb 2023 18:15:44 +0000 (19:15 +0100)
This bean is used only once, inline it in its sole user.

Change-Id: I366274dc2b040fb666994957ad468fadd988609b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/resources/OSGI-INF/blueprint/restconf-bp.xml

index adfcbf01659404b3b4bb09fd17a26a19b9d636e8..9c4a427829e3cb435e3b437e32ec165fcca7d0f0 100644 (file)
     </cm:default-properties>
   </cm:property-placeholder>
 
-  <bean id="threadPoolFactory"
-        class="org.opendaylight.controller.config.threadpool.util.NamingThreadPoolFactory">
-    <argument value="${ping-executor-name-prefix}"/>
-  </bean>
-
   <bean id="scheduledThreadPool"
         class="org.opendaylight.controller.config.threadpool.util.ScheduledThreadPoolWrapper">
     <argument value="${max-thread-count}"/>
-    <argument ref="threadPoolFactory"/>
+    <argument>
+      <bean class="org.opendaylight.controller.config.threadpool.util.NamingThreadPoolFactory">
+        <argument value="${ping-executor-name-prefix}"/>
+      </bean>
+    </argument>
   </bean>
 
   <bean id="configuration"