*/
package org.opendaylight.protocol.bgp.parser.spi;
+/**
+ * A single instance of a collection of extensions for use by consumers. This
+ * provides access to the various BGP-related registries. The registries are
+ * read-only and are populated by extension producers.
+ */
public interface BGPExtensionConsumerContext {
AddressFamilyRegistry getAddressFamilyRegistry();
AttributeRegistry getAttributeRegistry();
import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.binding.Notification;
+/**
+ * Context for registering providers of the various types of extension points BGP provides.
+ * These are then consumed by extension consumers. It also provides access to the context-wide
+ * object cache, which extension providers can use to increase the in-memory efficiency
+ * when the same objects are created over and over again.
+ */
public interface BGPExtensionProviderContext extends BGPExtensionConsumerContext {
AutoCloseable registerAddressFamily(Class<? extends AddressFamily> clazz, int number);
AutoCloseable registerSubsequentAddressFamily(Class<? extends SubsequentAddressFamily> clazz, int number);