Upgrade ietf-{inet,yang}-types to 2013-07-15
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / spi / RIBSupportContextRegistry.java
index 57bb4b58b983e1e055545fdd2565ae0678b7d88d..3fb31f71305d79c7cdce308e2df0564fb5388047 100644 (file)
@@ -7,12 +7,25 @@
  */
 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 {
 
-    public abstract RIBSupportContext getRIBSupportContext(TablesKey key);
+    /**
+     * Acquire a RIB Support Context for a AFI/SAFI combination.
+     * @param key AFI/SAFI key
+     * @return RIBSupport instance, or null if the AFI/SAFI is
+     *         not implemented.
+    */
+    @Nullable 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 RIBSupportContext getRIBSupportContext(NodeIdentifierWithPredicates key);
 }