Source

FrogPond / frogpond-generator / src / main / resources / applicationcontext.xml

Daan Gerits 9ee4a72 





eekmant 8edb697 
Daan Gerits 9ee4a72 

eekmant 8edb697 
Daan Gerits 9ee4a72 








eekmant 8edb697 
Daan Gerits 9ee4a72 

<?xml version="1.0" encoding="UTF-8"?>
<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.xsd">


    <bean id="freemarkerGenerator" class="org.frogpond.generator.ModelBasedGenerator">
        <property name="metadataStore" ref="metadataStore" />
        <property name="configuration">
            <bean class="org.frogpond.generator.FreemarkerConfiguration">
                <property name="resourceForTemplateLoading" value="#{ systemProperties['frogpond.template.path'] }" />
                <property name="objectWrapper">
                    <bean class="freemarker.template.DefaultObjectWrapper"/>
                </property>
            </bean>
        </property>
    </bean>

    <bean id="metadataStore" factory-bean="metadataStoreFactory" factory-method="create" />
    <bean id="metadataStoreFactory" class="org.frogpond.olm.metadata.store.MetadataStoreFactory">
        <property name="basePackage" value="#{ systemProperties['frogpond.package'] }" />
    </bean>
</beans>