re base code
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / components / impl / instance / OnChangeVersionOperation.java
1 package org.openecomp.sdc.be.components.impl.instance;
2
3 import org.openecomp.sdc.be.dao.api.ActionStatus;
4 import org.openecomp.sdc.be.model.Component;
5 import org.openecomp.sdc.be.model.ComponentInstance;
6 @FunctionalInterface
7 public interface OnChangeVersionOperation {
8
9     /**
10      * A side effect operation to execute when a component instance version was changed from {@code prevVersion} to {@code newVersion}
11      * @param container the container which contains the instance which is version was changed
12      * @param prevVersion the previous version of the component instance.
13      * @param newVersion the new version of the component instance.
14      * @return the status of the operation
15      */
16     ActionStatus onChangeVersion(Component container, ComponentInstance prevVersion, ComponentInstance newVersion);
17
18 }