<!--

  Copyright 2005-2014 The Kuali Foundation

  Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php

  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 xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:p="http://www.springframework.org/schema/p"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xmlns:beans="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:jdbc="http://www.springframework.org/schema/jdbc"
       xmlns:jee="http://www.springframework.org/schema/jee"
       xmlns:jms="http://www.springframework.org/schema/jms"
       xmlns:lang="http://www.springframework.org/schema/lang"
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xmlns:oxm="http://www.springframework.org/schema/oxm"
       xmlns:task="http://www.springframework.org/schema/task"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:util="http://www.springframework.org/schema/util"
       xsi:schemaLocation="http://www.springframework.org/schema/aop
                           http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
                           http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                           http://www.springframework.org/schema/context
                           http://www.springframework.org/schema/context/spring-context-3.0.xsd
                           http://www.springframework.org/schema/jdbc
                           http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd
                           http://www.springframework.org/schema/jee
                           http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
                           http://www.springframework.org/schema/jms
                           http://www.springframework.org/schema/jms/spring-jms-3.0.xsd
                           http://www.springframework.org/schema/lang
                           http://www.springframework.org/schema/lang/spring-lang-3.0.xsd
                           http://www.springframework.org/schema/mvc
                           http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
                           http://www.springframework.org/schema/oxm
                           http://www.springframework.org/schema/oxm/spring-oxm-3.0.xsd
                           http://www.springframework.org/schema/task
                           http://www.springframework.org/schema/task/spring-task-3.0.xsd
                           http://www.springframework.org/schema/tx
                           http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
                           http://www.springframework.org/schema/util
                           http://www.springframework.org/schema/util/spring-util-3.0.xsd">


  <bean id="${app}KradConvModuleConfiguration" class="org.kuali.rice.krad.bo.ModuleConfiguration">
    <property name="namespaceCode" value="${namespace}"/>
    <property name="initializeDataDictionary" value="true"/>
    <% if(!classpaths.isEmpty()) { %><property name="dataDictionaryPackages">
      <list><% for ( classpath in classpaths) {%>
        <value>classpath:${classpath}</value><% }%>
      </list>
    </property><% } %>
    <% if(!databaseRepositoryFilePath.isEmpty()) { %><property name="databaseRepositoryFilePaths">
      <list>
        <value>${databaseRepositoryFilePath}</value>
      </list>
    </property><% } %>
    <% if(!prefixes.isEmpty()) { %><property name="packagePrefixes">
      <list><% for (prefix in prefixes) { %>
        <value>${prefix}</value><% } %>
      </list>
    </property><% } %>
    <% if(!bundles.isEmpty()) { %><property name="resourceBundleNames">
      <list><% for (bundle in bundles) { %>
        <value>${bundle}</value><% } %>
      </list>
    </property><% } %>
  </bean>
  <bean id="${app}KradConvModuleService" class="org.kuali.rice.krad.service.impl.ModuleServiceBase">
    <property name="moduleConfiguration" ref="${app}KradConvModuleConfiguration"/>
  </bean>
</beans>