Convert to use EffectiveModelContext
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / UpdateSchemaContext.java
index 16f49e278a90ef65671874e4d34defd896d96357..96ae3820e75d4b7aa16c190870c57bf4808f4754 100644 (file)
@@ -5,19 +5,13 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.controller.cluster.datastore.messages;
 
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-
-public class UpdateSchemaContext {
-    private final SchemaContext schemaContext;
-
-    public UpdateSchemaContext(SchemaContext schemaContext) {
-        this.schemaContext = schemaContext;
-    }
+import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
+import org.opendaylight.yangtools.yang.model.util.AbstractEffectiveModelContextProvider;
 
-    public SchemaContext getSchemaContext() {
-        return schemaContext;
+public class UpdateSchemaContext extends AbstractEffectiveModelContextProvider {
+    public UpdateSchemaContext(final EffectiveModelContext modelContext) {
+        super(modelContext);
     }
 }