blob: ca36de1168a888e69f4b5f3c4608751f03946aa1 [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001<?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"
ys969316a9fce2020-01-19 13:50:02 +02003 xmlns:aop="http://www.springframework.org/schema/aop"
Michael Lando451a3402017-02-19 10:28:42 +02004 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
ys969316a9fce2020-01-19 13:50:02 +02007 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
Michael Lando451a3402017-02-19 10:28:42 +02008
9 <context:annotation-config />
10 <aop:aspectj-autoproxy proxy-target-class="true" />
11
12 <context:component-scan
Michael Landoa5445102018-03-04 14:53:33 +020013 base-package= "org.openecomp.sdc.be.components.health,
14 org.openecomp.sdc.be.servlets,
15 org.openecomp.sdc.be.externalapi.servlet,
ys969316a9fce2020-01-19 13:50:02 +020016 org.openecomp.sdc.be.components.scheduledtasks,
17 org.openecomp.sdc.be.facade.operations">
Michael Landoa5445102018-03-04 14:53:33 +020018 </context:component-scan>
Michael Landoed64b5e2017-06-09 03:19:04 +030019
20 <bean class="org.openecomp.sdc.be.dao.config.DAOSpringConfig"/>
Michael Landoa5445102018-03-04 14:53:33 +020021 <bean class="org.openecomp.sdc.be.config.CatalogModelSpringConfig"/>
22 <bean class="org.openecomp.sdc.be.components.distribution.engine.config.DistributionEngineSpringConfig"/>
23 <bean class="org.openecomp.sdc.config.CatalogBESpringConfig"/>
24
Michael Landoed64b5e2017-06-09 03:19:04 +030025
Michael Lando5b593492018-07-29 16:13:45 +030026 <aop:config>
27 <aop:aspect id="lockAspect" ref="componentLockAspect">
28 <aop:pointcut id="lockingTransaction" expression="@annotation(org.openecomp.sdc.be.components.impl.lock.LockingTransactional) and args(componentId, componentType,..)"/>
29 <aop:around method="lock" arg-names="proceedingJoinPoint,componentId,componentType" pointcut-ref="lockingTransaction"/>
30 </aop:aspect>
ys969316a9fce2020-01-19 13:50:02 +020031 <aop:aspect id="roleAuthorizationAspect" ref="roleAuthorizationHandler">
32 <aop:pointcut id="roleAuthorize" expression="@annotation(permissions)"/>
33 <aop:before method="authorizeRole" arg-names="joinPoint, permissions" pointcut-ref="roleAuthorize"/>
34 </aop:aspect>
Michael Lando5b593492018-07-29 16:13:45 +030035 </aop:config>
36
Michael Lando451a3402017-02-19 10:28:42 +020037</beans>