public interface DataObjectSerializerRegistry
DataObjectSerializer
.
The contract is kept between implementation of DataObjectSerializerImplementation
,
Registry provides lookup for serializers to support recursive
serialization of nested DataObject
s.
FIXME: this interface needs to be moved into .spi, but due to classpath funkyness
of OSGi, that change has to be carefully orchestrated to ensure proper imports
exist in all generated pacakges. One avenue how to achieve that is to move
YangModuleInfo
and modify code generator to add a static field
to all generated classes which will point to the per-model YangModuleInfo
(currently all users of it have to walk the package hierarchy, so that
is an improvement in and of itself).Modifier and Type | Method and Description |
---|---|
DataObjectSerializer |
getSerializer(Class<? extends DataObject> binding) |
DataObjectSerializer getSerializer(Class<? extends DataObject> binding)
Copyright © 2017 OpenDaylight. All rights reserved.