Store schemaContext in ActorContext so that all proxy objects can have access to it
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / utils / ActorContext.java
index c97e07db6d60c867c9f4c1687c9495ae9722a3c9..3dacec72bff48ace9aae63a0bec9182da8ec8b1b 100644 (file)
@@ -18,6 +18,7 @@ import org.opendaylight.controller.cluster.datastore.exceptions.PrimaryNotFoundE
 import org.opendaylight.controller.cluster.datastore.exceptions.TimeoutException;
 import org.opendaylight.controller.cluster.datastore.messages.FindPrimary;
 import org.opendaylight.controller.cluster.datastore.messages.PrimaryFound;
+import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import scala.concurrent.Await;
@@ -45,6 +46,8 @@ public class ActorContext {
     private final ActorSystem actorSystem;
     private final ActorRef shardManager;
 
+    private SchemaContext schemaContext = null;
+
     public ActorContext(ActorSystem actorSystem, ActorRef shardManager){
         this.actorSystem = actorSystem;
         this.shardManager = shardManager;