/** * Gets all Web Script Stores * * @return all Web Script Stores */ public Collection<Store> getStores() { Collection<Store> aliveStores = new ArrayList<Store>(searchPath.size()); for (Store store : searchPath) { if (store.exists()) { aliveStores.add(store); } } return aliveStores; }
/** * Gets all Web Script Stores * * @return all Web Script Stores */ public Collection<Store> getStores() { Collection<Store> aliveStores = new ArrayList<Store>(searchPath.size()); for (Store store : searchPath) { if (store.exists()) { aliveStores.add(store); } } return aliveStores; }
/** * Gets all Web Script Stores * * @return all Web Script Stores */ public Collection<Store> getStores() { Collection<Store> aliveStores = new ArrayList<Store>(searchPath.size()); for (Store store : searchPath) { if (store.exists()) { aliveStores.add(store); } } return aliveStores; }
@Override public void init(ModelPersistenceContext context) { // we require a store to use this persister // if a store doesn't exist, then disable persister if (!this.store.exists()) { if (logger.isInfoEnabled()) logger.info("Store missing for persister: " + this.getId()); this.disable(); } // create the cache once Spring property init has setup appropriate cache config options this.objectCache = (ModelObjectCache)createCache(); }
@Override public void init(ModelPersistenceContext context) { // we require a store to use this persister // if a store doesn't exist, then disable persister if (!this.store.exists()) { if (logger.isInfoEnabled()) logger.info("Store missing for persister: " + this.getId()); this.disable(); } // create the cache once Spring property init has setup appropriate cache config options this.objectCache = (ModelObjectCache)createCache(); }
if (!this.store.exists())
if (!this.store.exists())