7a51ba08251df46afd38b04f5fe0859de0e854ce
[mdsal.git] / binding / mdsal-binding-api / src / main / java / org / opendaylight / mdsal / binding / api / DataTreeProducerFactory.java
1 /*
2  * Copyright (c) 2015 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.mdsal.binding.api;
9
10 import java.util.Collection;
11
12 public interface DataTreeProducerFactory {
13
14     /**
15      * Create a producer, which is able to access to a set of trees.
16      *
17      * @param subtrees The collection of subtrees the resulting producer should have access to.
18      * @return A {@link DataTreeProducer} instance.
19      * @throws IllegalArgumentException if subtrees is empty.
20      */
21     DataTreeProducer createProducer(Collection<DataTreeIdentifier<?>> subtrees);
22
23 }