Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 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" |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 3 | xmlns:aop="http://www.springframework.org/schema/aop" |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 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 |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 7 | http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd"> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 8 | |
| 9 | <context:annotation-config /> |
| 10 | <aop:aspectj-autoproxy proxy-target-class="true" /> |
| 11 | |
| 12 | <context:component-scan |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 13 | base-package= "org.openecomp.sdc.be.components.health, |
| 14 | org.openecomp.sdc.be.servlets, |
| 15 | org.openecomp.sdc.be.externalapi.servlet, |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 16 | org.openecomp.sdc.be.components.scheduledtasks, |
talio | a098eda | 2020-06-17 15:57:06 +0300 | [diff] [blame] | 17 | org.openecomp.sdc.be.facade.operations, |
| 18 | org.openecomp.sdc.be.components.impl"> |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 19 | </context:component-scan> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 20 | |
| 21 | <bean class="org.openecomp.sdc.be.dao.config.DAOSpringConfig"/> |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 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 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 26 | |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 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> |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 32 | <aop:aspect id="roleAuthorizationAspect" ref="roleAuthorizationHandler"> |
| 33 | <aop:pointcut id="roleAuthorize" expression="@annotation(permissions)"/> |
| 34 | <aop:before method="authorizeRole" arg-names="joinPoint, permissions" pointcut-ref="roleAuthorize"/> |
| 35 | </aop:aspect> |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 36 | </aop:config> |
| 37 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 38 | </beans> |