Convert LocRibWriter to DOM APIs
[bgpcep.git] / bgp / path-selection-mode / src / main / java / org / opendaylight / protocol / bgp / mode / impl / base / BasePathSelection.java
1 /*
2  * Copyright (c) 2016 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
9 package org.opendaylight.protocol.bgp.mode.impl.base;
10
11 import org.opendaylight.protocol.bgp.mode.api.PathSelectionMode;
12 import org.opendaylight.protocol.bgp.mode.api.RouteEntry;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.Route;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.Tables;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.tables.Routes;
16 import org.opendaylight.yangtools.yang.binding.ChildOf;
17 import org.opendaylight.yangtools.yang.binding.ChoiceIn;
18 import org.opendaylight.yangtools.yang.binding.DataObject;
19 import org.opendaylight.yangtools.yang.binding.Identifiable;
20 import org.opendaylight.yangtools.yang.binding.Identifier;
21
22 final class BasePathSelection implements PathSelectionMode {
23
24     BasePathSelection() {
25     }
26
27     @Override
28     public <C extends Routes & DataObject & ChoiceIn<Tables>, S extends ChildOf<? super C>,
29             R extends Route & ChildOf<? super S> & Identifiable<I>, I extends Identifier<R>
30             > RouteEntry<C,S,R,I> createRouteEntry() {
31         return new BaseRouteEntry<>();
32     }
33
34     @Override
35     public void close() {
36         //no-op
37     }
38 }