All Downloads are FREE. Search and download functionalities are using the official Maven repository.

erio.celerio-engine.4.0.2.source-code.applicationContext-celerio.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2015 JAXIO http://www.jaxio.com
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<beans default-lazy-init="true" xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="
            http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
            http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd">

    <context:component-scan base-package="com/jaxio/celerio">
        <context:exclude-filter type="regex" expression="com/jaxio/celerio/configuration.*"/>
    </context:component-scan>

    <bean class="org.springframework.ui.velocity.VelocityEngineFactoryBean">
        <description>
            See
            http://velocity.apache.org/engine/releases/velocity-1.6.2/developer-guide.html#Configuring_Resource_Loaders
            Load from file then fallback to classpath
        </description>
        <property name="velocityProperties">
            <props>
                <prop key="runtime.references.strict">true</prop>
                <prop key="runtime.log.invalid.references">true</prop>

                <prop key="runtime.log.logsystem.class">org.apache.velocity.runtime.log.Log4JLogChute</prop>
                <prop key="runtime.log.logsystem.log4j.logger">com.jaxio.celerio.VelocityGenerator</prop>

                <prop key="resource.loader">file, class</prop>

                <prop key="file.resource.loader.description">Velocity File Resource Loader</prop>
                <prop key="file.resource.loader.class">org.apache.velocity.runtime.resource.loader.FileResourceLoader
                </prop>
                <prop key="file.resource.loader.path">., src/main/velocity</prop>
                <prop key="file.resource.loader.cache">true</prop>
                <prop key="file.resource.loader.modificationCheckInterval">-1</prop>

                <prop key="class.resource.loader.description">Velocity Classpath Resource Loader</prop>
                <prop key="class.resource.loader.class">
                    org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
                </prop>
            </props>
        </property>
    </bean>
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy