Merge "Use ${project.version} for internal dependencies"
[ovsdb.git] / openstack / net-virt-sfc / impl / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / sfc / NetvirtSfcClassifierListener.java
1 /*
2  * Copyright © 2015, 2016 Dell, 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
9 package org.opendaylight.ovsdb.openstack.netvirt.sfc;
10
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
12 import org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier;
13 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.netvirt.sfc.classifier.rev150105.Classifiers;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.netvirt.sfc.classifier.rev150105.classifiers.Classifier;
16
17 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
18
19 /**
20  * Data tree listener for Classifier.
21  *
22  * @author Arun Yerra
23  */
24 public class NetvirtSfcClassifierListener extends DelegatingDataTreeListener<Classifier> {
25     /**
26      * {@link NetvirtSfcClassifierListener} constructor.
27      * @param provider OpenFlow 1.3 Provider
28      * @param db MdSal {@link DataBroker}
29      */
30     public NetvirtSfcClassifierListener(final INetvirtSfcOF13Provider provider, final DataBroker db) {
31         super(provider, new NetvirtSfcClassifierDataProcessor(provider, db), db,
32                 new DataTreeIdentifier<>(LogicalDatastoreType.CONFIGURATION,
33                         InstanceIdentifier.create(Classifiers.class).child(Classifier.class)));
34     }
35 }