Open jarnaiz opened 10 years ago
Searching on internet i found:
So i think this feature is good :)
There is
public S3FileSystem(S3FileSystemProvider provider, String key, AmazonS3 client, String endpoint)
already right?
IMHO OP can just use that.
You can set your own s3fs_amazon_s3_factory in the amazon.properties. In your own implementation extending com.upplication.s3fs.AmazonS3Factory you have control over how the AmazonS3 is instantiated.
Study if is good to set only one AmazonS3 in a java enterprise application. If the endpoint change the FileSystem fails.
Example of usage