Removed some sonar warnings.
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / spi / RIBSupportContextRegistry.java
index b79017bd13ea30baf8880e448df9452f797e43e7..b18bce1a158f3c4f1e6616a9a4f71681893c6136 100644 (file)
@@ -9,6 +9,7 @@ package org.opendaylight.protocol.bgp.rib.impl.spi;
 
 import javax.annotation.Nullable;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev130925.rib.TablesKey;
+import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
 
 public interface RIBSupportContextRegistry {
 
@@ -18,6 +19,13 @@ public interface RIBSupportContextRegistry {
      * @return RIBSupport instance, or null if the AFI/SAFI is
      *         not implemented.
     */
-    public abstract @Nullable RIBSupportContext getRIBSupportContext(TablesKey key);
+    @Nullable abstract RIBSupportContext getRIBSupportContext(TablesKey key);
 
+    /**
+     * Acquire a RIB Support Context for a AFI/SAFI combination.
+     * @param key Tables key with AFI/SAFI key
+     * @return RIBSupport instance, or null if the AFI/SAFI is
+     *         not implemented.
+    */
+    @Nullable abstract RIBSupportContext getRIBSupportContext(NodeIdentifierWithPredicates key);
 }