Skip to content

Commit

Permalink
[#9631] Pass handlers to constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
intr3p1d committed Aug 18, 2023
1 parent a7a3928 commit 61e7e42
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@

<bean id="grpcTcpDispatchHandler" class="com.navercorp.pinpoint.collector.receiver.AgentDispatchHandler">
<constructor-arg index="0" ref="grpcAgentInfoHandler"/>
<constructor-arg index="1" ref="metaDataHandlers"/>
</bean>

<util:list id="metaDataHandlers">
<ref bean="grpcSqlMetaDataHandler"/>
<ref bean="grpcApiMetaDataHandler"/>
<ref bean="grpcStringMetaDataHandler"/>
<ref bean="grpcExceptionMetaDataHandler"/>
</util:list>

<bean id="grpcDispatchHandlerFactoryBean" class="com.navercorp.pinpoint.collector.receiver.DispatchHandlerFactoryBean">
<property name="dispatchHandler" ref="grpcTcpDispatchHandler"/>
<property name="handlerManager" ref="handlerManager"/>
Expand Down

0 comments on commit 61e7e42

Please sign in to comment.