server/java/renkan-management/src/main/resources/META-INF/spring/spring-shell-plugin.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:mvc="http://www.springframework.org/schema/mvc"
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
 xmlns:util="http://www.springframework.org/schema/util"
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-3.1.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-3.1.xsd
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
  http://www.springframework.org/schema/mvc
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
  http://www.springframework.org/schema/mvc/spring-mvc.xsd
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
  http://www.springframework.org/schema/util
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
  http://www.springframework.org/schema/util/spring-util.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
    <context:annotation-config />
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
    <mvc:annotation-driven />
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
    <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
    22
    <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
    23
    <context:component-scan base-package="org.iri_research.renkan.repositories" />
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
        
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
    <util:properties id="propsLocations">
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
        <prop key="servletContextProps">META-INF/renkan.properties</prop>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
        <prop key="classpathProps">classpath:renkan_run.properties</prop>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
    </util:properties>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
    <!--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
    31
    <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
    32
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
        <property name="order" value="1000"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
        <property name="location" value="#{propsLocations.servletContextProps}"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
        <property name="ignoreUnresolvablePlaceholders" value="true"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
        <property name="IgnoreResourceNotFound" value="false"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
    </bean> 
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
        <property name="order" value="1"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
        <property name="location" value="#{propsLocations.classpathProps}"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
        <property name="ignoreUnresolvablePlaceholders" value="true"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
        <property name="IgnoreResourceNotFound" value="true"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
    </bean> 
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
        
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
    <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
    46
        <property name="IgnoreResourceNotFound" value="true"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    47
        <property name="locations">
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
                <value>#{propsLocations.servletContextProps}</value>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
                <value>#{propsLocations.classpathProps}</value>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
            </list>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
        </property>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
        <property name="fileEncoding" value="UTF-8"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
    </bean>
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
    <!-- Configures the annotation-driven Spring MVC Controller programming model.
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
    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
    58
    
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
    <!-- Loads MongoDB configuraton -->
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    60
    <import resource="mongo-config.xml"/>
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    61
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    62
    <bean class="org.iri_research.renkan.RenkanProperties"
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
        factory-method="getInstance" />
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    64
    
0c3e6e66881f reorg java sources - add management commands
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
</beans>