Class AbstractCachedAuthorityFactory

All Implemented Interfaces:
AuthorityFactory, CRSAuthorityFactory, CSAuthorityFactory, DatumAuthorityFactory, Factory, CoordinateOperationAuthorityFactory, BufferedFactory, Factory, RegistrableFactory
Direct Known Subclasses:
AbstractEpsgFactory

An authority factory that consults (a possibly shared) cache before generating content itself. The behavior of the createFoo(String) methods first looks if a previously created object exists for the given code. If such an object exists, it is returned directly. The testing of the cache is synchronized and may block if the referencing object is under construction.

If the object is not yet created, the definition is delegated to the appropriate the generateFoo method and the result is cached for next time.

This object is responsible for using a provided {{ReferencingObjectCache}}.

Since:
2.4
Author:
Jody Garnett