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