<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.s3c.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
    default-lazy-init="false">

    <bean id="cfgroovy" class="cfgroovy.cfgroovy" init-method="configure">
        <property name="path">
            <value>${groovyPath}</value>
        </property>
        <property name="plugins">
            <list>
                <ref bean="cfhibernate" />
            </list>
        </property>
    </bean>
    
    <bean id="groovyFactory" class="cfgroovy.GroovyFactoryBean">
		<constructor-arg name="cfgroovy"><ref bean="cfgroovy" /></constructor-arg>
    </bean>
    
    <bean id="cfhibernate" class="cfgroovy.HibernatePlugin">
        <property name="entityPath">
            <value>${entityPath}</value>
        </property>
        <property name="coldFusionDsn">
            <value>${datasource}</value>
        </property>
        <property name="annotatedClasses">
            <list>
                <value>Category</value>
                <value>Comment</value>
                <value>Entry</value>
            </list>
        </property>
    </bean>

</beans>