|
|
|
@ -1,11 +1,7 @@
|
|
|
|
|
package com.fr.start.module.optimized; |
|
|
|
|
|
|
|
|
|
import com.fr.config.activator.ConfigurationActivator; |
|
|
|
|
import com.fr.config.dao.DaoContext; |
|
|
|
|
import com.fr.config.dao.DaoSelectorFactory; |
|
|
|
|
import com.fr.config.dao.impl.remote.PropertiesClassHelperDao; |
|
|
|
|
import com.fr.config.dao.impl.remote.PropertiesEntityDao; |
|
|
|
|
import com.fr.config.dao.impl.remote.PropertiesXmlEntityDao; |
|
|
|
|
import com.fr.transaction.PropertiesTransactor; |
|
|
|
|
import com.fr.transaction.TransactorFactory; |
|
|
|
|
|
|
|
|
@ -20,9 +16,6 @@ public class ConfigurationActivator4Designer extends ConfigurationActivator {
|
|
|
|
|
protected void initLocalDao() { |
|
|
|
|
if (DaoSelectorFactory.getDaoSelector().useCacheDao()) { |
|
|
|
|
TransactorFactory.setTransactor(new PropertiesTransactor()); |
|
|
|
|
DaoContext.setClassHelperDao(new PropertiesClassHelperDao()); |
|
|
|
|
DaoContext.setEntityDao(new PropertiesEntityDao()); |
|
|
|
|
DaoContext.setXmlEntityDao(new PropertiesXmlEntityDao()); |
|
|
|
|
} else { |
|
|
|
|
super.initLocalDao(); |
|
|
|
|
} |
|
|
|
|