/** * Returns the registry, created when first needed. */ private static DataStoreRegistry registry() { DataStoreRegistry r = registry; if (r == null) { synchronized (DataStores.class) { r = registry; if (r == null) { registry = r = new DataStoreRegistry(); } } } return r; }
/** * Returns the registry, created when first needed. */ private static DataStoreRegistry registry() { DataStoreRegistry r = registry; if (r == null) { synchronized (DataStores.class) { r = registry; if (r == null) { registry = r = new DataStoreRegistry(); } } } return r; }