Search in sources :

Example 1 with Codecs

use of org.opendaylight.protocol.bgp.rib.impl.spi.Codecs in project bgpcep by opendaylight.

the class CodecsRegistryImpl method onSchemaContextUpdated.

void onSchemaContextUpdated(final SchemaContext context) {
    final BindingRuntimeContext runtimeContext = BindingRuntimeContext.create(this.classContext, context);
    this.latestCodecTree = this.codecFactory.create(runtimeContext);
    for (final Codecs codecs : this.contexts.asMap().values()) {
        try {
            codecs.onCodecTreeUpdated(this.latestCodecTree);
        } catch (final Exception e) {
            LOG.error("Codec creation threw {}", e.getMessage(), e);
        }
    }
}
Also used : Codecs(org.opendaylight.protocol.bgp.rib.impl.spi.Codecs) BindingRuntimeContext(org.opendaylight.mdsal.binding.generator.util.BindingRuntimeContext)

Aggregations

BindingRuntimeContext (org.opendaylight.mdsal.binding.generator.util.BindingRuntimeContext)1 Codecs (org.opendaylight.protocol.bgp.rib.impl.spi.Codecs)1