awips2/edexOsgi/com.raytheon.uf.edex.management/res/spring/management-common.xml
2017-04-21 18:33:55 -06:00

50 lines
1.9 KiB
XML

<beans xmlns="http://www.springframework.org/schema/beans"
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-3.1.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean id="mgmtInit" class="com.raytheon.uf.edex.management.MgmtInitializer" />
<bean id="changeContextHandler"
class="com.raytheon.uf.edex.management.handler.ChangeContextHandler" />
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg
value="com.raytheon.uf.common.management.request.ChangeContextRequest" />
<constructor-arg ref="changeContextHandler" />
</bean>
<bean id="getContextsHandler"
class="com.raytheon.uf.edex.management.handler.diagnostic.GetContextsHandler" />
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg
value="com.raytheon.uf.common.management.request.diagnostic.GetContextsRequest" />
<constructor-arg ref="getContextsHandler" />
</bean>
<bean id="statusHandler"
class="com.raytheon.uf.edex.management.handler.diagnostic.StatusHandler" />
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg
value="com.raytheon.uf.common.management.request.diagnostic.StatusRequest" />
<constructor-arg ref="statusHandler" />
</bean>
<camelContext id="management"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler"
autoStartup="true">
<endpoint id="managementEndpoint"
uri="jetty:http://0.0.0.0:${MGMT_PORT}/services/edexMgmt?disableStreamCache=true" />
<route id="managementService">
<from ref="managementEndpoint" />
<bean ref="routeWrapper" method="executeThrift"/>
</route>
</camelContext>
</beans>