use of org.opendaylight.mdsal.binding.generator.impl.GeneratedClassLoadingStrategy in project controller by opendaylight.
the class BindingTestContext method startBindingToDomMappingService.
public void startBindingToDomMappingService() {
checkState(this.classPool != null, "ClassPool needs to be present");
final DataObjectSerializerGenerator generator = StreamWriterGenerator.create(JavassistUtils.forClassPool(this.classPool));
final BindingNormalizedNodeCodecRegistry codecRegistry = new BindingNormalizedNodeCodecRegistry(generator);
final GeneratedClassLoadingStrategy loading = GeneratedClassLoadingStrategy.getTCCLClassLoadingStrategy();
this.codec = new BindingToNormalizedNodeCodec(loading, codecRegistry);
this.mockSchemaService.registerSchemaContextListener(this.codec);
}
Aggregations