da4328dd91b33de379b65435fe1006875f38a372
[sdc.git] /
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.*;
28 import org.openecomp.sdc.vendorsoftwareproduct.factory.InformationArtifactGeneratorFactory;
29
30 public class VspManagerFactoryImpl extends VspManagerFactory {
31   private static final VendorSoftwareProductManager INSTANCE =
32       new VendorSoftwareProductManagerImpl(
33           VspMergeDaoFactory.getInstance().createInterface(),
34           OrchestrationTemplateDaoFactory.getInstance().createInterface(),
35           OrchestrationTemplateCandidateManagerFactory.getInstance().createInterface(),
36           VendorSoftwareProductInfoDaoFactory.getInstance().createInterface(),
37           VendorLicenseFacadeFactory.getInstance().createInterface(),
38           ServiceModelDaoFactory.getInstance().createInterface(),
39           EnrichedServiceModelDaoFactory.getInstance().createInterface(),
40           VendorLicenseArtifactServiceFactory.getInstance().createInterface(),
41           InformationArtifactGeneratorFactory.getInstance().createInterface(),
42           PackageInfoDaoFactory.getInstance().createInterface(),
43           DeploymentFlavorDaoFactory.getInstance().createInterface(),
44           ComponentDaoFactory.getInstance().createInterface(),
45           ComponentDependencyModelDaoFactory.getInstance().createInterface(),
46           NicDaoFactory.getInstance().createInterface(),
47           ComputeDaoFactory.getInstance().createInterface(),
48           ImageDaoFactory.getInstance().createInterface(),
49           new ManualVspToscaManagerImpl(),
50           UniqueValueDaoFactory.getInstance().createInterface());
51
52   @Override
53   public VendorSoftwareProductManager createInterface() {
54     return INSTANCE;
55   }
56 }