summaryrefslogtreecommitdiffstats
path: root/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/impl/ImageManagerFactoryImpl.java
blob: e3d9c89cfcaa57e10d2670602cb6875ef620fe4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.openecomp.sdc.vendorsoftwareproduct.impl;


import org.openecomp.sdc.vendorsoftwareproduct.CompositionEntityDataManagerFactory;
import org.openecomp.sdc.vendorsoftwareproduct.ImageManager;
import org.openecomp.sdc.vendorsoftwareproduct.ImageManagerFactory;
import org.openecomp.sdc.vendorsoftwareproduct.dao.ImageDaoFactory;
import org.openecomp.sdc.vendorsoftwareproduct.dao.VendorSoftwareProductInfoDaoFactory;

public class ImageManagerFactoryImpl extends ImageManagerFactory {

  private static final ImageManager INSTANCE =
      new ImageManagerImpl(
          VendorSoftwareProductInfoDaoFactory.getInstance().createInterface(),
          ImageDaoFactory.getInstance().createInterface(),
          CompositionEntityDataManagerFactory.getInstance().createInterface()
      );

  @Override
  public ImageManager createInterface() {
    return INSTANCE;
  }

}