awips2/edexOsgi/com.raytheon.edex.utilitysrv/res/spring/utility-request.xml
Dustin Johnson b4a13190ad Issue #1302 Address peer review comments for 5-Data_Delivery/development merge
Amend:
  More peer review comments
  Restore PreferencesHandler

Change-Id: Ib995f58c31ce844466674dbe29bf3048b78048f7

Former-commit-id: efd3d3735a [formerly 064ef82d1e] [formerly efd3d3735a [formerly 064ef82d1e] [formerly 1dbeb22893 [formerly c04f7dca6f980ab7f3d77825312ddc34ba3b188d]]]
Former-commit-id: 1dbeb22893
Former-commit-id: 2d1e886cf3 [formerly 4222b24d09]
Former-commit-id: 6613c51d3b
2012-11-08 09:57:16 -06:00

52 lines
No EOL
2.7 KiB
XML

<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean id="utilitySrv" class="com.raytheon.edex.services.UtilitySrv"/>
<bean id="privilegedUtilityHandler" class="com.raytheon.edex.services.PrivilegedUtilityHandler"/>
<!-- Dual purpose bean, provides the thrift handler for getServers requests and contains the registry of servers -->
<bean id="serverLocationRegistry" class="com.raytheon.edex.services.GetServersHandler"/>
<bean id="getServerTime" class="com.raytheon.edex.services.GetServerTimeHandler"/>
<bean id="streamSrv" class="com.raytheon.edex.services.LocalizationStreamHandler"/>
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg value="com.raytheon.uf.common.localization.msgs.UtilityRequestMessage"/>
<constructor-arg ref="utilitySrv"/>
</bean>
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg value="com.raytheon.uf.common.localization.msgs.PrivilegedUtilityRequestMessage"/>
<constructor-arg ref="privilegedUtilityHandler"/>
</bean>
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg value="com.raytheon.uf.common.localization.msgs.GetServersRequest"/>
<constructor-arg ref="serverLocationRegistry"/>
</bean>
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg value="com.raytheon.uf.common.time.msgs.GetServerTimeRequest"/>
<constructor-arg ref="getServerTime"/>
</bean>
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg value="com.raytheon.uf.common.localization.stream.LocalizationStreamPutRequest"/>
<constructor-arg ref="streamSrv"/>
</bean>
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg value="com.raytheon.uf.common.localization.stream.LocalizationStreamGetRequest"/>
<constructor-arg ref="streamSrv"/>
</bean>
<camelContext id="utility-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
<route id="utilityNotify">
<from uri="vm://utilityNotify" />
<bean ref="serializationUtil" method="transformToThrift" />
<to uri="jms-generic:topic:edex.alerts.utility" />
</route>
</camelContext>
</beans>