summaryrefslogtreecommitdiffstats
path: root/openecomp-be/backend/openecomp-sdc-action-manager/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be/backend/openecomp-sdc-action-manager/src/main')
-rw-r--r--openecomp-be/backend/openecomp-sdc-action-manager/src/main/java/org/openecomp/sdc/action/impl/ActionManagerImpl.java22
1 files changed, 15 insertions, 7 deletions
diff --git a/openecomp-be/backend/openecomp-sdc-action-manager/src/main/java/org/openecomp/sdc/action/impl/ActionManagerImpl.java b/openecomp-be/backend/openecomp-sdc-action-manager/src/main/java/org/openecomp/sdc/action/impl/ActionManagerImpl.java
index 69a1024e1f..458883ebb0 100644
--- a/openecomp-be/backend/openecomp-sdc-action-manager/src/main/java/org/openecomp/sdc/action/impl/ActionManagerImpl.java
+++ b/openecomp-be/backend/openecomp-sdc-action-manager/src/main/java/org/openecomp/sdc/action/impl/ActionManagerImpl.java
@@ -63,20 +63,28 @@ import static org.openecomp.sdc.versioning.dao.types.Version.VERSION_STRING_VIOL
*/
public class ActionManagerImpl implements ActionManager {
- private static final ActionDao actionDao = ActionDaoFactory.getInstance().createInterface();
- private static final ActionVersioningManager versioningManager =
- ActionVersioningManagerFactory.getInstance().createInterface();
- private static final ActionArtifactDao actionArtifactDao =
- ActionArtifactDaoFactory.getInstance().createInterface();
- private static VersionInfoDao versionInfoDao =
- VersionInfoDaoFactory.getInstance().createInterface();
+ private final ActionDao actionDao;
+ private final ActionVersioningManager versioningManager;
+ private final ActionArtifactDao actionArtifactDao;
+ private final VersionInfoDao versionInfoDao;
private final Logger log = (Logger) LoggerFactory.getLogger(this.getClass().getName());
public ActionManagerImpl() {
+ actionDao = ActionDaoFactory.getInstance().createInterface();
+ versioningManager = ActionVersioningManagerFactory.getInstance().createInterface();
+ actionArtifactDao = ActionArtifactDaoFactory.getInstance().createInterface();
+ versionInfoDao = VersionInfoDaoFactory.getInstance().createInterface();
actionDao.registerVersioning(ACTION_VERSIONABLE_TYPE);
}
+ public ActionManagerImpl(ActionDao actionDao, ActionVersioningManager versioningManager,
+ ActionArtifactDao actionArtifactDao, VersionInfoDao versionInfoDao) {
+ this.actionDao = actionDao;
+ this.versioningManager = versioningManager;
+ this.actionArtifactDao = actionArtifactDao;
+ this.versionInfoDao = versionInfoDao;
+ }
/**
* List All Major, Last Minor and Candidate version (if any) for Given Action Invariant UUID
*