- Preconditions.checkArgument(getConfigDataStoreDependency() instanceof DistributedDataStore,
- "Injected config DOMStore must be an instance of DistributedDataStore");
- Preconditions.checkArgument(getOperDataStoreDependency() instanceof DistributedDataStore,
- "Injected operational DOMStore must be an instance of DistributedDataStore");
- ClusterAdminRpcService service = new ClusterAdminRpcService((DistributedDataStore)getConfigDataStoreDependency(),
- (DistributedDataStore)getOperDataStoreDependency());
+ Preconditions.checkArgument(getConfigDataStoreDependency() instanceof DistributedDataStoreInterface,
+ "Injected config DOMStore must be an instance of DistributedDataStoreInterface");
+ Preconditions.checkArgument(getOperDataStoreDependency() instanceof DistributedDataStoreInterface,
+ "Injected operational DOMStore must be an instance of DistributedDataStoreInterface");
+ ClusterAdminRpcService service = new ClusterAdminRpcService(
+ (DistributedDataStoreInterface)getConfigDataStoreDependency(),
+ (DistributedDataStoreInterface)getOperDataStoreDependency());