<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE lucy-config PUBLIC "-//LUCY//DTD LUCY//EN" "http://www.lucy.org/dtd/lucy-config.dtd">
<lucy-config>
    <!-- The components of DBFlute Runtime. -->
    <component class="${glPackageBaseCommon}.${glDBFluteInitializer}"/>
#if ($database.hasExtendedImplementedInvokerAssistantClass())
    <component name="${database.invokerAssistantComponentName}" class="${database.extendedImplementedInvokerAssistantClass}">
#else
    <component name="${database.invokerAssistantComponentName}" class="${glPackageBaseCommon}.${glImplementedInvokerAssistant}">
#end
        <inject method="setDataSource">${database.DBFluteBeansDataSourceName}</inject>
    </component>
#if ($database.hasExtendedImplementedCommonColumnAutoSetupperClass())
    <component name="${database.commonColumnAutoSetupperComponentName}" class="${database.extendedImplementedCommonColumnAutoSetupperClass}"/>
#else
    <component name="${database.commonColumnAutoSetupperComponentName}" class="${glPackageBaseCommon}.${glImplementedCommonColumnAutoSetupper}"/>
#end
    <component name="${database.behaviorSelectorComponentName}" class="${glPackageBaseCommon}.${glImplementedBehaviorSelector}">
        <inject method="setContainer">lucy</inject>
    </component>
    <component name="${database.behaviorCommandInvokerComponentName}" class="org.seasar.dbflute.bhv.core.BehaviorCommandInvoker">
        <inject method="setInvokerAssistant">${database.invokerAssistantComponentName}</inject>
    </component>
    
    <!-- The components of Behavior. -->
#foreach ($table in $database.tables)
	<component name="${table.behaviorComponentName}" class="${table.extendedBehaviorFullClassName}">
        <inject method="setBehaviorCommandInvoker">${database.behaviorCommandInvokerComponentName}</inject>
        <inject method="setBehaviorSelector">${database.behaviorSelectorComponentName}</inject>
#if ($table.isWritable())
        <inject method="setCommonColumnAutoSetupper">${database.commonColumnAutoSetupperComponentName}</inject>
#end
    </component>
#end
</lucy-config>
