mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-25 06:58:39 +00:00
improved behaviour of file storage mgmt service
This commit is contained in:
+1
-6
@@ -31,10 +31,5 @@ public interface FileStorageManagementService {
|
||||
*/
|
||||
FileStorageService getActiveFileStorageService() throws NoCorrespondingServiceRegisteredException;
|
||||
|
||||
/**
|
||||
* @throws InvalidPropertiesException
|
||||
* if the service properties are {@link FileStorageService#testProperties() invalid}. Then the old
|
||||
* active service (if any) remains active.
|
||||
*/
|
||||
void setActiveFileStorageService(FileStorageService service) throws InvalidPropertiesException;
|
||||
void setActiveFileStorageService(FileStorageService service);
|
||||
}
|
||||
|
||||
+1
-2
@@ -6,7 +6,6 @@ import com.sap.sse.common.NoCorrespondingServiceRegisteredException;
|
||||
import com.sap.sse.common.TypeBasedServiceFinder;
|
||||
import com.sap.sse.filestorage.FileStorageManagementService;
|
||||
import com.sap.sse.filestorage.FileStorageService;
|
||||
import com.sap.sse.filestorage.InvalidPropertiesException;
|
||||
import com.sap.sse.osgi.CachedOsgiTypeBasedServiceFinderFactory;
|
||||
|
||||
public class TransientFileStorageManagementServiceImpl implements FileStorageManagementService {
|
||||
@@ -28,7 +27,7 @@ public class TransientFileStorageManagementServiceImpl implements FileStorageMan
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setActiveFileStorageService(FileStorageService service) throws InvalidPropertiesException {
|
||||
public void setActiveFileStorageService(FileStorageService service) {
|
||||
active = service;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user