Fix initial datastore configuration
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / DatastoreContextIntrospectorFactory.java
1 /*
2  * Copyright (c) 2018 Inocybe Technologies and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.cluster.datastore;
9
10 import java.util.Map;
11 import org.eclipse.jdt.annotation.NonNullByDefault;
12 import org.eclipse.jdt.annotation.Nullable;
13 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
14
15 /**
16  * Factory for creating {@link DatastoreContextIntrospector} instances.
17  *
18  * @author Thomas Pantelis
19  */
20 @NonNullByDefault
21 public interface DatastoreContextIntrospectorFactory {
22     /**
23      * Create a new {@link DatastoreContextIntrospector} initialized with specified properties.
24      *
25      * @param datastoreType Datastore type
26      * @param properties optional initial properties
27      * @return A new DatastoreContextIntrospector
28      */
29     DatastoreContextIntrospector newInstance(LogicalDatastoreType datastoreType,
30         @Nullable Map<String, Object> properties);
31 }