awips2/edexOsgi/com.raytheon.uf.edex.plugin.grid/res/spring/grid-common.xml
Nate Jensen 3f3e0a788d Issue #1989 update spring xsd references to 3.1, fix ingestDat.sh
Change-Id: I478c31b72267fe7fd3b7a6559de87e8600c3c0c3

Former-commit-id: b7b619e1a3a85ac8c5f22a36317e22e15ad557a2
2013-05-29 14:49:43 -05:00

60 lines
No EOL
2.3 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="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>
<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>