Sync Integ to Master
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / config / CatalogBESpringConfig.java
1 package org.openecomp.sdc.config;
2
3 import org.openecomp.sdc.be.components.lifecycle.LifecycleBusinessLogic;
4 import org.openecomp.sdc.be.ecomp.converters.AssetMetadataConverter;
5 import org.openecomp.sdc.common.transaction.mngr.TransactionManager;
6 import org.springframework.context.annotation.Bean;
7 import org.springframework.context.annotation.ComponentScan;
8 import org.springframework.context.annotation.Configuration;
9
10 @Configuration
11 @ComponentScan({"org.openecomp.sdc.be.user",
12         "org.openecomp.sdc.be.impl",
13         "org.openecomp.sdc.be.auditing.impl",
14         "org.openecomp.sdc.be.distribution",
15         "org.openecomp.sdc.be.switchover.detector",
16         "org.openecomp.sdc.be.tosca",
17         "org.openecomp.sdc.be.components.validation",
18         "org.openecomp.sdc.be.components.impl",
19         "org.openecomp.sdc.be.components.path",
20         "org.openecomp.sdc.be.components.merge",
21         "org.openecomp.sdc.be.components.csar",
22         "org.openecomp.sdc.be.components.property"
23 })
24 public class CatalogBESpringConfig {
25     @Bean(name = "lifecycleBusinessLogic")
26     public LifecycleBusinessLogic lifecycleBusinessLogic() {
27         return new LifecycleBusinessLogic();
28     }
29
30     @Bean(name = "transactionManager")
31     public TransactionManager transactionManager() {
32         return new TransactionManager();
33     }
34
35     @Bean(name = "asset-metadata-utils")
36     public AssetMetadataConverter assetMetadataConverter() {
37         return new AssetMetadataConverter();
38     }
39
40 }