2 * Copyright © 2016-2018 European Support Limited
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.openecomp.sdc.vendorsoftwareproduct.impl;
19 import org.openecomp.core.model.dao.EnrichedServiceModelDaoFactory;
20 import org.openecomp.core.model.dao.ServiceModelDaoFactory;
21 import org.openecomp.sdc.vendorlicense.VendorLicenseArtifactServiceFactory;
22 import org.openecomp.sdc.vendorlicense.facade.VendorLicenseFacadeFactory;
23 import org.openecomp.sdc.vendorsoftwareproduct.OrchestrationTemplateCandidateManagerFactory;
24 import org.openecomp.sdc.vendorsoftwareproduct.VendorSoftwareProductManager;
25 import org.openecomp.sdc.vendorsoftwareproduct.VspManagerFactory;
26 import org.openecomp.sdc.vendorsoftwareproduct.dao.ComponentDaoFactory;
27 import org.openecomp.sdc.vendorsoftwareproduct.dao.ComponentDependencyModelDaoFactory;
28 import org.openecomp.sdc.vendorsoftwareproduct.dao.ComputeDaoFactory;
29 import org.openecomp.sdc.vendorsoftwareproduct.dao.DeploymentFlavorDaoFactory;
30 import org.openecomp.sdc.vendorsoftwareproduct.dao.ImageDaoFactory;
31 import org.openecomp.sdc.vendorsoftwareproduct.dao.NicDaoFactory;
32 import org.openecomp.sdc.vendorsoftwareproduct.dao.OrchestrationTemplateDaoFactory;
33 import org.openecomp.sdc.vendorsoftwareproduct.dao.PackageInfoDaoFactory;
34 import org.openecomp.sdc.vendorsoftwareproduct.dao.VendorSoftwareProductInfoDaoFactory;
35 import org.openecomp.sdc.vendorsoftwareproduct.factory.InformationArtifactGeneratorFactory;
37 public class VspManagerFactoryImpl extends VspManagerFactory {
38 private static final VendorSoftwareProductManager INSTANCE =
39 new VendorSoftwareProductManagerImpl(
40 OrchestrationTemplateDaoFactory.getInstance().createInterface(),
41 OrchestrationTemplateCandidateManagerFactory.getInstance().createInterface(),
42 VendorSoftwareProductInfoDaoFactory.getInstance().createInterface(),
43 VendorLicenseFacadeFactory.getInstance().createInterface(),
44 ServiceModelDaoFactory.getInstance().createInterface(),
45 EnrichedServiceModelDaoFactory.getInstance().createInterface(),
46 VendorLicenseArtifactServiceFactory.getInstance().createInterface(),
47 InformationArtifactGeneratorFactory.getInstance().createInterface(),
48 PackageInfoDaoFactory.getInstance().createInterface(),
49 DeploymentFlavorDaoFactory.getInstance().createInterface(),
50 ComponentDaoFactory.getInstance().createInterface(),
51 ComponentDependencyModelDaoFactory.getInstance().createInterface(),
52 NicDaoFactory.getInstance().createInterface(),
53 ComputeDaoFactory.getInstance().createInterface(),
54 ImageDaoFactory.getInstance().createInterface(),
55 new ManualVspToscaManagerImpl());
58 public VendorSoftwareProductManager createInterface() {