public class S3FileFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<File>, org.springframework.beans.factory.DisposableBean
Constructor and Description |
---|
S3FileFactoryBean(com.amazonaws.services.s3.AmazonS3 s3Client,
String bucketName,
String objectKey) |
S3FileFactoryBean(com.amazonaws.auth.AWSCredentialsProvider creds,
String bucketName,
String objectKey) |
S3FileFactoryBean(com.amazonaws.auth.AWSCredentials creds,
String bucketName,
String objectKey) |
S3FileFactoryBean(String bucketName,
String objectKey) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
File |
getObject() |
Class<File> |
getObjectType() |
boolean |
isSingleton() |
void |
setLocalFile(File localFile) |
public S3FileFactoryBean(com.amazonaws.services.s3.AmazonS3 s3Client, String bucketName, String objectKey)
public S3FileFactoryBean(com.amazonaws.auth.AWSCredentials creds, String bucketName, String objectKey)
public S3FileFactoryBean(com.amazonaws.auth.AWSCredentialsProvider creds, String bucketName, String objectKey)
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
public File getObject() throws IOException
getObject
in interface org.springframework.beans.factory.FactoryBean<File>
IOException
public Class<File> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<File>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<File>
public void setLocalFile(File localFile)
Copyright © 2012-2015. All Rights Reserved.