Get rid of JSR305 annotations
[bgpcep.git] / bgp / openconfig-spi / src / main / java / org / opendaylight / protocol / bgp / openconfig / spi / BGPTableTypeRegistryProvider.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 package org.opendaylight.protocol.bgp.openconfig.spi;
9
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.types.rev151009.AfiSafiType;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.AddressFamily;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.SubsequentAddressFamily;
14 import org.opendaylight.yangtools.concepts.AbstractRegistration;
15
16 /**
17  * The BGP extension may provide supported table type (AFI/SAFI).
18  */
19 public interface BGPTableTypeRegistryProvider extends  BGPTableTypeRegistryConsumer {
20
21     /**
22      * Register supported AFI/SAFI.
23      * @param afi Local representation of AFI.
24      * @param safi Local representation of SAFI.
25      * @param afiSafiType OpenConfig AFI/SAFI representation.
26      * @return Registration ticket.
27      */
28     @NonNull AbstractRegistration registerBGPTableType(@NonNull Class<? extends AddressFamily> afi,
29             @NonNull Class<? extends SubsequentAddressFamily> safi, @NonNull Class<? extends AfiSafiType> afiSafiType);
30
31 }