<?xml version="1.0" encoding="UTF-8"?>\r
<beans xmlns="http://www.springframework.org/schema/beans"\r
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
- xmlns:p="http://www.springframework.org/schema/p" xmlns:util="http://www.springframework.org/schema/util"\r
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"\r
+ xmlns:util="http://www.springframework.org/schema/util" xmlns:osgi="http://www.springframework.org/schema/osgi"\r
xsi:schemaLocation="\r
- http://www.springframework.org/schema/beans\r
- http://www.springframework.org/schema/beans/spring-beans-2.5.xsd\r
- http://www.springframework.org/schema/util \r
- http://www.springframework.org/schema/util/spring-util-2.5.xsd\r
+ http://www.springframework.org/schema/beans\r
+ http://www.springframework.org/schema/beans/spring-beans-2.5.xsd\r
+ http://www.springframework.org/schema/util \r
+ http://www.springframework.org/schema/util/spring-util-2.5.xsd\r
+ http://www.springframework.org/schema/osgi \r
+ http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd\r
">\r
\r
+ <bean id="backend" class="org.argeo.slc.gis.field.FieldBackend"\r
+ init-method="afterPropertiesSet">\r
+ <property name="dataSources">\r
+ <set>\r
+ <ref bean="dataSource" />\r
+ </set>\r
+ </property>\r
+ <!-- <property name="vectors"> <bean class="org.argeo.slc.core.deploy.DefaultResourceSet"> \r
+ <property name="base" value="file:/home/mbaudier/gis/projects/100122-EasternBalkans2010/data" \r
+ /> <property name="include" value="*.shp" /> </bean> </property> <property \r
+ name="rasters"> <bean class="org.argeo.slc.core.deploy.DefaultResourceSet"> \r
+ <property name="base" value="file:/home/mbaudier/gis/data/100501-Poehali" \r
+ /> <property name="include" value="*.gif" /> </bean> </property> -->\r
+ <property name="jaiImageIoClassLoader" ref="jai.imageio.bdClassLoader" />\r
+ </bean>\r
+\r
+ <bean id="shapeFileDataStore" class="org.geotools.data.FileDataStoreFinder"\r
+ factory-method="getDataStore">\r
+ <constructor-arg\r
+ value="file:///home/mbaudier/gis/data/providers/naturalearth/1.3.0/10m_cultural/10m_admin_0_countries.shp" />\r
+ </bean>\r
\r
<bean id="postGisDataStore" factory-bean="postGisDataStoreFactory"\r
factory-method="createDataStore">\r
<constructor-arg>\r
<map>\r
- <!-- Cannot access the .key property, wait for Spring 3.0 to do it properly \r
- <entry key-ref="JDBCDataStore.DATASOURCE" value-ref="dataSource" /> -->\r
- <entry key="Data Source" value-ref="dataSource" />\r
+ <!-- Cannot access the .key property, wait for Spring 3.0 EL to do it \r
+ properly <entry key-ref="JDBCDataStore.DATASOURCE" value-ref="dataSource" \r
+ /> -->\r
+ <entry key="Data Source" value-ref="dataSource" />\r
</map>\r
</constructor-arg>\r
</bean>\r
<property name="maxIdle" value="2" />\r
</bean>\r
\r
+ <bean id="jai.imageio.bdClassLoader"\r
+ class="org.springframework.osgi.util.BundleDelegatingClassLoader"\r
+ factory-method="createBundleClassLoaderFor">\r
+ <constructor-arg>\r
+ <osgi:bundle symbolic-name="org.argeo.dep.osgi.jai.imageio" />\r
+ </constructor-arg>\r
+ </bean>\r
+\r
+\r
</beans>
\ No newline at end of file