awips2/edexOsgi/com.raytheon.uf.edex.plugin.grid/res/spring/grid-common.xml
2018-06-19 15:32:00 -06:00

66 lines
No EOL
2.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.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean id="gridPathProvider" class="com.raytheon.uf.common.dataplugin.grid.GridPathProvider" />
<bean id="gridProperties" class="com.raytheon.uf.common.dataplugin.PluginProperties">
<property name="pluginName" value="grid" />
<property name="pluginFQN" value="com.raytheon.uf.common.dataplugin.grid" />
<property name="dao"
value="com.raytheon.uf.edex.plugin.grid.dao.GridDao" />
<property name="record"
value="com.raytheon.uf.common.dataplugin.grid.GridRecord" />
<property name="dependencyFQNs">
<list>
<value>com.raytheon.uf.common.dataplugin.level</value>
<value>com.raytheon.uf.common.parameter</value>
<value>com.raytheon.uf.common.gridcoverage</value>
</list>
</property>
<property name="pathProvider">
<ref bean="gridPathProvider" />
</property>
<property name="compression" value="LZF" />
</bean>
<bean id="gridRegistered" factory-bean="pluginRegistry" factory-method="register"
depends-on="levelRegistered,parameterRegistered,gridcoverageRegistered">
<constructor-arg value="grid" />
<constructor-arg ref="gridProperties" />
</bean>
<bean id="gridUnitsRegisterd" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetClass">
<value>com.raytheon.uf.common.dataplugin.grid.units.GridUnits</value>
</property>
<property name="targetMethod">
<value>register</value>
</property>
</bean>
<bean id="gridInfoCache" class="com.raytheon.uf.edex.plugin.grid.dao.GridInfoCache"
factory-method="getInstance" />
<bean class="com.raytheon.uf.edex.plugin.grid.dao.GridDao" factory-method="setPurgeModelCacheTopic">
<constructor-arg value="jms-generic:topic:purgeGridInfoCache?timeToLive=60000" />
</bean>
<bean id="gridTreeHandler" class="com.raytheon.uf.edex.plugin.grid.handler.GridTreeHandler" />
<bean id="gridTreeHandlerRegistered" factory-bean="handlerRegistry" factory-method="register">
<constructor-arg value="com.raytheon.uf.common.dataplugin.grid.request.GetGridTreeRequest" />
<constructor-arg ref="gridTreeHandler" />
</bean>
<camelContext id="grid-common-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
<route id="purgeGridInfoCache">
<from uri="jms-generic:topic:purgeGridInfoCache" />
<bean ref="gridInfoCache" method="purgeCache" />
</route>
</camelContext>
</beans>