summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/resources/application-context.xml
blob: 403debfb08bceb46257fb3b9bd3ecbcd69b8777f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<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"
  xmlns:aop="http://www.springframework.org/schema/aop"
  xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">

  <context:annotation-config />
  <aop:aspectj-autoproxy proxy-target-class="true" />

  <context:component-scan
          base-package= "org.openecomp.sdc.be.components.health,
                         org.openecomp.sdc.be.servlets,
                         org.openecomp.sdc.be.externalapi.servlet,
                         org.openecomp.sdc.be.components.scheduledtasks,
                         org.openecomp.sdc.be.facade.operations,
                         org.openecomp.sdc.be.components.impl">
  </context:component-scan>

  <bean class="org.openecomp.sdc.be.dao.config.DAOSpringConfig"/>
  <bean class="org.openecomp.sdc.be.config.CatalogModelSpringConfig"/>
  <bean class="org.openecomp.sdc.be.components.distribution.engine.config.DistributionEngineSpringConfig"/>
  <bean class="org.openecomp.sdc.config.CatalogBESpringConfig"/>


  <aop:config>
    <aop:aspect id="lockAspect" ref="componentLockAspect">
      <aop:pointcut id="lockingTransaction" expression="@annotation(org.openecomp.sdc.be.components.impl.lock.LockingTransactional) and args(componentId, componentType,..)"/>
      <aop:around method="lock" arg-names="proceedingJoinPoint,componentId,componentType" pointcut-ref="lockingTransaction"/>
    </aop:aspect>
    <aop:aspect id="roleAuthorizationAspect" ref="roleAuthorizationHandler">
      <aop:pointcut id="roleAuthorize" expression="@annotation(permissions)"/>
      <aop:before method="authorizeRole" arg-names="joinPoint, permissions" pointcut-ref="roleAuthorize"/>
    </aop:aspect>
  </aop:config>

</beans>
pan> 9200 # default number of instances replicaCount: 1 nodeSelector: {} affinity: {} # probe configuration parameters liveness: initialDelaySeconds: 300 periodSeconds: 10 timeoutSeconds: 1 # necessary to disable liveness probe when setting breakpoints # in debugger so K8s doesn't restart unresponsive container enabled: true readiness: initialDelaySeconds: 300 periodSeconds: 10 timeoutSeconds: 1 service: #Example service definition with external, internal and node ports. #Services may use any combination of ports depending on the 'type' of #service being defined. type: NodePort name: pomba-kibana externalPort: 5601 internalPort: 5601 nodePort: 34 ingress: enabled: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little # resources, such as Minikube. If you do want to specify resources, uncomment the following # lines, adjust them as necessary, and remove the curly braces after 'resources:'. # # Example: # Configure resource requests and limits # ref: http://kubernetes.io/docs/user-guide/compute-resources/ # Minimum memory for development is 2 CPU cores and 4GB memory # Minimum memory for production is 4 CPU cores and 8GB memory #resources: # limits: # cpu: 2 # memory: 4Gi # requests: # cpu: 2 # memory: 4Gi