Unique identifier for test execution
[sdc.git] / openecomp-be / backend / openecomp-sdc-vendor-software-product-manager / src / main / java / org / openecomp / sdc / vendorsoftwareproduct / impl / VspManagerFactoryImpl.java
1 /*
2  * Copyright © 2016-2018 European Support Limited
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.openecomp.sdc.vendorsoftwareproduct.impl;
18
19 import org.openecomp.core.dao.UniqueValueDaoFactory;
20 import org.openecomp.core.model.dao.EnrichedServiceModelDaoFactory;
21 import org.openecomp.core.model.dao.ServiceModelDaoFactory;
22 import org.openecomp.sdc.vendorlicense.VendorLicenseArtifactServiceFactory;
23 import org.openecomp.sdc.vendorlicense.facade.VendorLicenseFacadeFactory;
24 import org.openecomp.sdc.vendorsoftwareproduct.OrchestrationTemplateCandidateManagerFactory;
25 import org.openecomp.sdc.vendorsoftwareproduct.VendorSoftwareProductManager;
26 import org.openecomp.sdc.vendorsoftwareproduct.VspManagerFactory;
27 import org.openecomp.sdc.vendorsoftwareproduct.dao.ComponentDaoFactory;
28 import org.openecomp.sdc.vendorsoftwareproduct.dao.ComponentDependencyModelDaoFactory;
29 import org.openecomp.sdc.vendorsoftwareproduct.dao.ComputeDaoFactory;
30 import org.openecomp.sdc.vendorsoftwareproduct.dao.DeploymentFlavorDaoFactory;
31 import org.openecomp.sdc.vendorsoftwareproduct.dao.ImageDaoFactory;
32 import org.openecomp.sdc.vendorsoftwareproduct.dao.NicDaoFactory;
33 import org.openecomp.sdc.vendorsoftwareproduct.dao.OrchestrationTemplateDaoFactory;
34 import org.openecomp.sdc.vendorsoftwareproduct.dao.PackageInfoDaoFactory;
35 import org.openecomp.sdc.vendorsoftwareproduct.dao.VendorSoftwareProductInfoDaoFactory;
36 import org.openecomp.sdc.vendorsoftwareproduct.dao.VspMergeDaoFactory;
37 import org.openecomp.sdc.vendorsoftwareproduct.factory.CandidateServiceFactory;
38 import org.openecomp.sdc.vendorsoftwareproduct.factory.InformationArtifactGeneratorFactory;
39
40 public class VspManagerFactoryImpl extends VspManagerFactory {
41   private static final VendorSoftwareProductManager INSTANCE = new VendorSoftwareProductManagerImpl.Builder()
42                                                                        .vspMerge(VspMergeDaoFactory.getInstance().createInterface())
43                                                                        .orchestrationTemplate(OrchestrationTemplateDaoFactory.getInstance().createInterface())
44                                                                        .orchestrationTemplateCandidateManager(OrchestrationTemplateCandidateManagerFactory.getInstance().createInterface())
45                                                                        .vspInfo(VendorSoftwareProductInfoDaoFactory.getInstance().createInterface())
46                                                                        .vendorLicenseFacade(VendorLicenseFacadeFactory.getInstance().createInterface())
47                                                                        .serviceModel(ServiceModelDaoFactory.getInstance().createInterface())
48                                                                        .enrichedServiceModel(EnrichedServiceModelDaoFactory.getInstance().createInterface())
49                                                                        .licenseArtifactsService(VendorLicenseArtifactServiceFactory.getInstance().createInterface())
50                                                                        .informationArtifactGenerator(InformationArtifactGeneratorFactory.getInstance().createInterface())
51                                                                        .packageInfo(PackageInfoDaoFactory.getInstance().createInterface())
52                                                                        .deploymentFlavor(DeploymentFlavorDaoFactory.getInstance().createInterface())
53                                                                        .component(ComponentDaoFactory.getInstance().createInterface())
54                                                                        .componentDependencyModel(ComponentDependencyModelDaoFactory.getInstance().createInterface())
55                                                                        .nic(NicDaoFactory.getInstance().createInterface())
56                                                                        .compute(ComputeDaoFactory.getInstance().createInterface())
57                                                                        .image(ImageDaoFactory.getInstance().createInterface())
58                                                                        .manualVspToscaManager(new ManualVspToscaManagerImpl())
59                                                                        .uniqueValue(UniqueValueDaoFactory.getInstance().createInterface())
60                                                                        .candidateService(CandidateServiceFactory.getInstance().createInterface())
61                                                                        .build();
62
63   @Override
64   public VendorSoftwareProductManager createInterface() {
65     return INSTANCE;
66   }
67 }