I added OrionAsyncBlobStore.java because otherwise BaseBlobLiveTest
was complaining about it.
Async blobstores are deprecated - please refactor the live test to use
the *sync* API and remove the async blobstore.
The Guice error is straightforward, thankfully:
In the module, we're telling Guice to make an OrionBlobStore [1]. But
if you look at the dependencies of OrionBlobStore, as demonstated by
its constructor [2], it needs a
Supplier<Location> defaultLocation, Supplier<Set<? extends Location>>
locations
jclouds provides these in a rather complicated way, based on region if
no explicit provider is defined [3]. And we are not defining any
regions in our ApiMetadata or ProviderMetadata (there's a typo in
OrionProviderMetada, by the way ;-)).
So we have a couple of choices:
* define the region and other properties required for the implicit
location supplier to work
* define an *explicit* supplier for defaultLocation and locations
* remove the two arguments from the OrionBlobStore constructor if we
don't need them
Regards
ap
[1]
https://github.com/timur87/orion/blob/master/src/main/java/org/jclouds/orion/config/OrionBlobStoreModule.java#L19
[2]
https://github.com/timur87/orion/blob/master/src/main/java/org/jclouds/orion/blobstore/OrionBlobStore.java#L28
[3]
https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/location/suppliers/implicit/OnlyLocationOrFirstRegionOptionallyMatchingRegionId.java