How would I pass in my new context module?
That would be a good question to ask on #IRC [1], I think.
Basically, as far as I recall (don't quote me on this! ;-)), you'll
have to create your own ApiMetadata, probably by overriding
S3ApiMetadata [2], and change the set of default modules.
How would I pass in my new context module?
I've gotten as far as extending S3BlobStoreContextModule,
overriding bucketAcls() to specify a longer expiration, but then what? Do I
just pass in an instance of my context module to ContextBuilder#modules()?
When I tried that, I got this exception:
I'm using the S3 API, and I've noticed that every time I call
blobStore.putBlob(), the S3 provider requests the bucket's ACL first. From
looking at the code, it appears that the ACLs should be cached after the
first GET, but I'm not seeing that. With debug logging enabled, I can
clearly see the
blobStore.putBlob(), the S3 provider requests the bucket's ACL first. From
looking at the code, it appears that the ACLs should be cached after the
first GET, but I'm not seeing that.
Could you point out which code (path) specifically you're looking at here?
Thanks!
ap