Introduce netconf.server.{api,impl}
[netconf.git] / netconf / tools / netconf-testtool / src / main / java / org / opendaylight / netconf / test / tool / operations / OperationsCreator.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. 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.netconf.test.tool.operations;
9
10 import java.util.Set;
11 import org.opendaylight.netconf.api.capability.Capability;
12 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
13 import org.opendaylight.netconf.server.api.SessionIdProvider;
14
15 /**
16  * Creator which enables testtool users to inject own. implementation of {@link NetconfOperationService}
17  */
18 public interface OperationsCreator {
19     /**
20      * Creates instance of {@link NetconfOperationService} based on caller context.
21      *
22      * @param capabilities Model capabilities.
23      * @param idProvider Provider's session context.
24      * @param netconfSessionIdForReporting Netconf SessionId for reporting
25      * @return Instance of {@link NetconfOperationService}.
26      */
27     NetconfOperationService getNetconfOperationService(Set<Capability> capabilities, SessionIdProvider idProvider,
28         String netconfSessionIdForReporting);
29 }