BUG-994: introduce ObjectCache for QNameModule/QName 26/6926/19
authorRobert Varga <rovarga@cisco.com>
Tue, 13 May 2014 09:21:55 +0000 (11:21 +0200)
committerRobert Varga <rovarga@cisco.com>
Mon, 4 Aug 2014 07:32:03 +0000 (09:32 +0200)
commit1329dfbfcb4da0e2e877b23f29fea418ad7c66bb
tree5047bd18b86c8880f662f14520ecfd2631d9c64f
parentd998adebaf9be4d12a7fb2d462134b5c6c1aae37
BUG-994: introduce ObjectCache for QNameModule/QName

This introduces caching for QNameModule using object-cache-api. This
will allow for efficient object reuse, at the cost of requiring a cache
implementation being available on the class path.

The use of cache has been not propagated to the static creator methods,
simply because the caching lookup introduces a cost which is not
acceptable in all contexts.

Change-Id: I5af9c7e54c726c05a5824521f5ed5183dc4899b4
Signed-off-by: Robert Varga <rovarga@cisco.com>
integration-test/bundle-test/src/test/java/org/opendaylight/yangtools/bundle/test/BundleStartTest.java
yang/yang-common/pom.xml
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/QName.java
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/QNameModule.java