@Override protected void removeInfo(BlobStoreConfiguration config, String name) throws Exception { config.removeBlobStore(name); }
/** * Finds out which {@link BlobStoreConfiguration} contains the given blob store, removes it, and * saves the configuration. * * @param blobStoreName the name of the blob store to remove * @return true if the blob store was removed, false if it was not found. */ public synchronized void removeBlobStore(final String blobStoreName) throws IllegalArgumentException { for (BlobStoreConfiguration config : getConfigs()) { if (config.containsBlobStore(blobStoreName)) { config.removeBlobStore(blobStoreName); return; } } throw new NoSuchElementException( "No configuration found containing blob store " + blobStoreName); } /**