server/java/renkan-web/src/main/resources/META-INF/applicationContext.xml
author rougeronj
Tue, 22 Sep 2015 15:14:10 +0200
changeset 543 5f7bebdcfc0d
parent 316 242510015401
permissions -rw-r--r--
Improve the way we init the view. The data loader send a "loaded" event, hooked by the scene.py and initializing the backbone.history and the view. We don't use redraw_active in save-once and full-json, because it was making the view initialization dependent of these file which are externals. Small fix to hide the "set saved view" button when there is only one view.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
309
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
<beans xmlns="http://www.springframework.org/schema/beans"
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
    xmlns:context="http://www.springframework.org/schema/context"
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
    xmlns:util="http://www.springframework.org/schema/util"
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    xmlns:mvc="http://www.springframework.org/schema/mvc"
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
    xsi:schemaLocation="
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
            http://www.springframework.org/schema/beans
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
            http://www.springframework.org/schema/beans/spring-beans.xsd
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
            http://www.springframework.org/schema/context
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
            http://www.springframework.org/schema/context/spring-context.xsd
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
            http://www.springframework.org/schema/util
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
            http://www.springframework.org/schema/util/spring-util.xsd
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
            http://www.springframework.org/schema/mvc
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
            http://www.springframework.org/schema/mvc/spring-mvc.xsd"
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
    <!-- Activates various annotations to be detected in bean classes -->
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
    <context:annotation-config />
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
    <mvc:annotation-driven />
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
    <util:properties id="propsLocations">
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
        <prop key="servletContextProps">META-INF/renkan.properties</prop>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
        <prop key="classpathProps">classpath:renkan_run.properties</prop>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
    </util:properties>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
	<!--context:property-placeholder  order="1000" ignore-unresolvable="true" ignore-resource-not-found="false" location="${propsLocations.servletContextProps}"/>	
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
	<context:property-placeholder  order="1" ignore-unresolvable="true" ignore-resource-not-found="true" location="${propsLocations.classpathProps}"/-->
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
        <property name="order" value="1000"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
        <property name="location" value="#{propsLocations.servletContextProps}"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
        <property name="ignoreUnresolvablePlaceholders" value="true"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
        <property name="IgnoreResourceNotFound" value="false"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
    </bean> 
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
        <property name="order" value="1"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
        <property name="location" value="#{propsLocations.classpathProps}"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
        <property name="ignoreUnresolvablePlaceholders" value="true"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
        <property name="IgnoreResourceNotFound" value="true"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
    </bean> 
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
		
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
	<bean id="renkanProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
	    <property name="IgnoreResourceNotFound" value="true"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
        <property name="locations">
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
            <list>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
                <value>#{propsLocations.servletContextProps}</value>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    47
                <value>#{propsLocations.classpathProps}</value>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    48
            </list>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
        </property>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
        <property name="fileEncoding" value="UTF-8"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
    </bean>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
	
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
	<!-- Configures the annotation-driven Spring MVC Controller programming model.
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
	Note that, with Spring 3.0, this tag works in Servlet MVC only!  -->
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
	
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
    <!-- Loads MongoDB configuraton -->
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
    <import resource="mongo-config.xml"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
    <bean id="springConfigurer"
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    60
        class="org.iri_research.renkan.coweb.SpringConfigurer"
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    61
        factory-method="getInstance" />
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    62
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
    <bean class="org.iri_research.renkan.RenkanProperties"
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    64
        factory-method="getInstance" />
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    66
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
    <!-- Scans the classpath for annotated components that will be auto-registered as Spring beans.
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
     For example @Controller and @Service. Make sure to set the correct base-package-->
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    69
    <context:component-scan base-package="org.iri_research.renkan.models" />
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    70
    <context:component-scan base-package="org.iri_research.renkan.rest" />
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    71
    <context:component-scan base-package="org.iri_research.renkan.coweb" />
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    72
    <context:component-scan base-package="org.iri_research.renkan.management" />
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    73
        
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    74
    <bean class="org.springframework.context.support.ReloadableResourceBundleMessageSource" id="messageSource">
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    75
        <property name="basenames">
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    76
            <list>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    77
                <value>META-INF/i18n/messages</value>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    78
                <value>classpath:org/springframework/security/messages</value>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    79
            </list>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    80
        </property>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    81
        <property name="defaultEncoding" value="UTF-8"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    82
        <property name="fallbackToSystemLocale" value="true" />
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    83
    </bean>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    84
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    85
</beans>