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

Matthew Swift
21.25.2014 08c8ebade44d94666be683c1c0794c5518d41341
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
commit08c8ebade44d94666be683c1c0794c5518d41341
tree b084d6221768a8fd8a561c0234adaf103b4cb518 tree | zip | gz
parent 13f31d030c3b205931b63c29b0d6bc1d4eefd163 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.
3 files modified
1 files renamed
372 ■■■■ changed files
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/DelayedSchema.java 11 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/Schema.java 346 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/SchemaBuilder.java 11 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/SchemaTestCase.java 4 ●●●● diff | view | raw | blame | history