conf.context.xml Maven / Gradle / Ivy
The newest version!
<?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-3.2.xsd"> <!-- DAO --> <bean abstract="true" id="flexess_core_abstract_emf_dao" class="org.jresearch.flexess.core.model.dao.impl.EMFDaoSupport"/> <bean id="flexess_core_pDao" class="org.jresearch.flexess.core.model.dao.impl.PObjectDAO" parent="flexess_core_abstract_emf_dao"/> <bean id="flexess_core_roleDao" class="org.jresearch.flexess.core.model.dao.impl.RoleDAO" parent="flexess_core_abstract_emf_dao"/> <bean id="flexess_core_userRoleDao" class="org.jresearch.flexess.core.model.dao.impl.JpaUserRoleDao"/> <bean id="flexess_core_modelRegistry" class="org.jresearch.flexess.core.api.impl.ModelRegistry"/> <!-- Services --> <bean abstract="true" id="flexess_core_loadAwareTemplate" class="org.springframework.aop.framework.ProxyFactoryBean"> <property name="interceptorNames"> <list> <value>flexess_core_modelLoadAdvice</value> </list> </property> </bean> <bean id="flexess_core_pObjectService" parent="flexess_core_loadAwareTemplate"> <property name="target" ref="flexess_core_pObjectServiceTarget"/> <property name="proxyInterfaces" value="org.jresearch.flexess.core.services.IPObjectService"/> </bean> <bean id="flexess_core_userRoles" parent="flexess_core_loadAwareTemplate"> <property name="target" ref="flexess_core_userRoleServiceTarget"/> </bean> <bean id="flexess_core_roleService" parent="flexess_core_loadAwareTemplate"> <property name="target" ref="flexess_core_roleServiceTarget"/> </bean> <!-- <bean id="flexess_core_modelService" parent="flexess_resources_txInternalProxyTemplate"> <property name="target" ref="flexess_core_modelServiceTarget"/> </bean> --> <bean id="flexess_core_userService" class="org.jresearch.flexess.core.api.impl.UserService"/> <bean id="flexess_core_userRoleInstanceService" class="org.jresearch.flexess.core.api.impl.UserRoleService"> <property name="delegate" ref="flexess_core_userRoles"/> </bean> <!-- Target services --> <bean id="flexess_core_pObjectServiceTarget" class="org.jresearch.flexess.core.services.impl.PObjectService"> <property name="prDao" ref="flexess_core_pDao"/> </bean> <bean id="flexess_core_userRoleServiceTarget" class="org.jresearch.flexess.core.services.impl.UserRoleService"/> <bean id="flexess_core_roleServiceTarget" class="org.jresearch.flexess.core.services.impl.RoleService"> <property name="roleDAO" ref="flexess_core_roleDao"/> </bean> <bean id="flexess_core_modelServiceTarget" class="org.jresearch.flexess.core.api.impl.ModelService"/> <bean id="flexess_core_AvailabilityLock" class="java.util.concurrent.locks.ReentrantLock"/> <bean id="flexess_core_contextLockAdvice" class="org.jresearch.flexess.core.api.load.impl.ContextLockInterceptor"> <property name="serverAvailabilityLock" ref="flexess_core_AvailabilityLock"/> </bean> <bean id="flexess_core_modelLoadAdvice" class="org.jresearch.flexess.core.api.load.impl.ModelLoadAwareAdvice"> <property name="serverAvailabilityLock" ref="flexess_core_AvailabilityLock"/> </bean> <bean id="flexess_core_modelLoader" class="org.jresearch.flexess.core.api.load.impl.ModelLoader"> <property name="modelService" ref="flexess_core_modelServiceTarget"/> <property name="serverAvailabilityLock" ref="flexess_core_AvailabilityLock"/> <property name="localModels" value="classpath*:model/*.uam"/> <property name="localXmlModels" value="classpath*:model/*.xml"/> <property name="uamXmlLoader" ref="flexess_models_xml_loader"/> </bean> </beans>