Separate out RootModificationApplyOperation
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / LatestOperationHolder.java
index 33fc91a08b160dc443ecfe6dc0de9bc071611e90..8a31f092c6365e3992a5b82c73ec39f63114316b 100644 (file)
@@ -27,13 +27,13 @@ final class LatestOperationHolder {
     }
 
     /**
-     * Sets latest backing implementation of associated {@link RootModificationApplyOperation}.
+     * Sets latest backing implementation of associated {@link RootApplyStrategy}.
      *
      * <p>
      * Note: This does not result in upgrading implementation of already existing
-     * {@link RootModificationApplyOperation}. Users, who obtained instances using {@link #newSnapshot()}, deriving
-     * {@link RootModificationApplyOperation} from this modification must explicitly invoke
-     * {@link RootModificationApplyOperation#upgradeIfPossible()} on their instance to be updated to latest backing
+     * {@link RootApplyStrategy}. Users, who obtained instances using {@link #newSnapshot()}, deriving
+     * {@link RootApplyStrategy} from this modification must explicitly invoke
+     * {@link RootApplyStrategy#upgradeIfPossible()} on their instance to be updated to latest backing
      * implementation.
      *
      * @param newApplyOper New backing implementation
@@ -43,13 +43,13 @@ final class LatestOperationHolder {
     }
 
     /**
-     * Creates new upgradable {@link RootModificationApplyOperation} associated with holder.
+     * Creates new upgradable {@link RootApplyStrategy} associated with holder.
      *
-     * @return New upgradable {@link RootModificationApplyOperation} with {@link #getCurrent()} used
+     * @return New upgradable {@link RootApplyStrategy} with {@link #getCurrent()} used
      *         as the backing implementation.
      */
-    RootModificationApplyOperation newSnapshot() {
-        return new UpgradableModificationApplyOperation(this, current);
+    RootApplyStrategy newSnapshot() {
+        return new UpgradableRootApplyStrategy(this, current);
     }
 
 }
\ No newline at end of file