mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
21.25.2014 bd0775818758032e3db84e517e3d9621c3b9cec6
refs
author Matthew Swift <matthew.swift@forgerock.com>
Thursday, August 21, 2014 16:25 +0200
committer Matthew Swift <matthew.swift@forgerock.com>
Thursday, August 21, 2014 16:25 +0200
commitbd0775818758032e3db84e517e3d9621c3b9cec6
tree 8eb0acf5fb53f6ded3a214d7367d9b7c2cc0ba18 tree | zip | gz
parent 777ee9c8d7a8c4771df4d78da198a00dc8816f50 view | diff
Preparatory work for OPENDJ-1477: Constant re-allocation of DN per-schema caches

CR-4331: Ensure that the same schema instance is always returned across consecutive calls to Schema.asStrictSchema() and Schema.asNonStrictSchema() by delegating ownership of the schema views to the underlying implementations. The changes required that I remove the EmptyImpl schema implementation, which is actually a nice simplification:

* DefaultSchema - renamed to more appropriately named DelayedSchema
* DelayedSchema - renamed from DefaultSchema. Now also initializes the singleton "empty schema"
* Schema - remove EmptyImpl; Impls now responsible for managing strict and non-strict views
* SchemaBuilder - consequence of changes to Schema
* SchemaTestCase - enabled tests.
1 files renamed
3 files modified
372 ■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/DelayedSchema.java 11 ●●●● diff | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/Schema.java 346 ●●●● diff | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/SchemaBuilder.java 11 ●●●● diff | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/SchemaTestCase.java 4 ●●●● diff | view | raw | blame | history