Fixed leak of LazyGeneratedCodecRegistry between restarts of service. 68/8368/1
authorTony Tkacik <ttkacik@cisco.com>
Thu, 26 Jun 2014 12:15:05 +0000 (14:15 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Thu, 26 Jun 2014 12:30:04 +0000 (14:30 +0200)
commit27b15b2f23673a8444095c6d4b51cad2859a6439
treefaa7a6bcc605e90c455aca4d11c60ac2b053e9d6
parent0f295bf870e15ce7e640ce2dcedbddc73dc852ab
Fixed leak of LazyGeneratedCodecRegistry between restarts of service.

LocationAwareDispatch codecs was inner classes referencing
their parent and between tests leaked incorrect order context.
Updated their implementation, to take latest LazyGeneratedCodecRegistry.

This still assumes there is only one registry at a time
per classloader space.

Change-Id: I1ae58e1c4dd90914893e61172b6d171b458d2ba2
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
code-generator/binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/LazyGeneratedCodecRegistry.java
code-generator/binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/RuntimeGeneratedMappingServiceImpl.java
restconf/restconf-util/src/test/java/org/opendaylight/yangtools/restconf/utils/LazyGeneratedCodecRestartTest.java [new file with mode: 0644]
restconf/restconf-util/src/test/java/org/opendaylight/yangtools/restconf/utils/RestconfUtilsTest.java