Bug 1027: Improved instance identifier codec for augmentations 20/7220/1
authorTony Tkacik <ttkacik@cisco.com>
Mon, 19 May 2014 14:36:53 +0000 (16:36 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Mon, 19 May 2014 14:39:56 +0000 (16:39 +0200)
commitffb90701debf771c5047713878f676fe079df729
tree3537951bcbd245fc82e30105864c038e1989ded5
parent68ff6add000c56f5bb6a52bc28df8777f29f4a56
Bug 1027: Improved instance identifier codec for augmentations

InstanceIdentifierCodecImpl
Updated instance identifier codec to also create context
for child nodes of augmentation when augmentation is
for first time encountered in new context.

Improved structure of instance identifier codec to be bit
more readable and which allows for reuse.

LazyGeneratedCodecRegistry
Updated AugmentableDispatchCodec to try serialization
of InstanceIdentifier to augmentation when new
location is discovered and report back if serialization
failed.

Added documentation to adaptForPathImpl, renamed parameters
to be more readable.

Change-Id: Ie55b163a4ab617b82dd89ed85a504e104f147fe8
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
code-generator/binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/InstanceIdentifierCodecImpl.java
code-generator/binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/LazyGeneratedCodecRegistry.java
yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/util/BindingReflections.java