re base code
[sdc.git] / catalog-be / src / main / resources / application-context.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
3   xmlns:aop="http://www.springframework.org/schema/aop" xmlns:util="http://www.springframework.org/schema/util"
4   xsi:schemaLocation="
5         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
6         http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
7         http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
8         http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">
9
10   <context:annotation-config />
11   <aop:aspectj-autoproxy proxy-target-class="true" />
12
13   <context:component-scan
14           base-package= "org.openecomp.sdc.be.components.health,
15                          org.openecomp.sdc.be.servlets,
16                          org.openecomp.sdc.be.externalapi.servlet,
17                          org.openecomp.sdc.be.components.scheduledtasks
18                          ">
19   </context:component-scan>
20
21   <bean class="org.openecomp.sdc.be.dao.config.DAOSpringConfig"/>
22   <bean class="org.openecomp.sdc.be.config.CatalogModelSpringConfig"/>
23   <bean class="org.openecomp.sdc.be.components.distribution.engine.config.DistributionEngineSpringConfig"/>
24   <bean class="org.openecomp.sdc.config.CatalogBESpringConfig"/>
25
26
27   <aop:config>
28     <aop:aspect id="lockAspect" ref="componentLockAspect">
29       <aop:pointcut id="lockingTransaction" expression="@annotation(org.openecomp.sdc.be.components.impl.lock.LockingTransactional) and args(componentId, componentType,..)"/>
30       <aop:around method="lock" arg-names="proceedingJoinPoint,componentId,componentType" pointcut-ref="lockingTransaction"/>
31     </aop:aspect>
32   </aop:config>
33
34
35   <util:properties id="elasticsearchConfig" location="file:${config.home}/elasticsearch.yml" />
36   
37 </beans>