lshift/diffa — pull request #194 by 0x6e6562 (2012-06-19 23:02:14+00:00)
Title: Foundations for caching domain config store

The goal of this patch is to lay the foundations for replacing the Hibernate 1st and 2nd level caches from the domain config store. The main functional scope of this patch is to cache calls to `listPairsForEndpoint` and `getEndpoint`. Ideally, I would have liked to cache every call to the DomainConfigStore, but in order to do so, a lot of foundations need to be laid and the resulting patch would have been huge. So I have left the cache scope at `listPairsForEndpoint` for now.

Having said that, this patch contains a lot of stuff:

* The domain sequence caching is no longer necessary as the sequence value is provided by Hazelcast in any case;
* All non-Hibernate usages of ehcahce (e.g. `CacheWrapper`) have been migrated to the `CacheProvider` API (and hence ehcache is all but removed);
* Some duplicated calls in the `SystemConfigStore` have been removed;
* The caching of pairs is no longer shared between the `SystemConfigStore` and the `DomainConfigStore` - now the latter registers itself as an event listener with the former;