-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
72 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 0 additions & 56 deletions
56
src/main/java/no/entur/antu/config/GcsStorageStubConfig.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/main/java/no/entur/antu/config/LocalDiskBlobStoreRepositoryConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Licensed under the EUPL, Version 1.2 or – as soon they will be approved by | ||
* the European Commission - subsequent versions of the EUPL (the "Licence"); | ||
* You may not use this work except in compliance with the Licence. | ||
* You may obtain a copy of the Licence at: | ||
* | ||
* https://joinup.ec.europa.eu/software/page/eupl | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the Licence is distributed on an "AS IS" basis, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the Licence for the specific language governing permissions and | ||
* limitations under the Licence. | ||
* | ||
*/ | ||
|
||
package no.entur.antu.config; | ||
|
||
import org.rutebanken.helper.storage.repository.BlobStoreRepository; | ||
import org.rutebanken.helper.storage.repository.LocalDiskBlobStoreRepository; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.annotation.Profile; | ||
import org.springframework.context.annotation.Scope; | ||
|
||
@Configuration | ||
@Profile("local-disk-blobstore") | ||
public class LocalDiskBlobStoreRepositoryConfig { | ||
|
||
@Bean | ||
@Scope("prototype") | ||
BlobStoreRepository blobStoreRepository( | ||
@Value("${blobstore.local.folder:files/blob}") String baseFolder | ||
) { | ||
return new LocalDiskBlobStoreRepository(baseFolder); | ||
} | ||
} |
41 changes: 0 additions & 41 deletions
41
src/main/java/no/entur/antu/repository/BlobStoreRepository.java
This file was deleted.
Oops, something went wrong.
62 changes: 0 additions & 62 deletions
62
src/main/java/no/entur/antu/repository/GcsBlobStoreRepository.java
This file was deleted.
Oops, something went wrong.
111 changes: 0 additions & 111 deletions
111
src/main/java/no/entur/antu/repository/InMemoryBlobStoreRepository.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.