org.springframework.cloud.aws.core.io.s3.PathMatchingSimpleStorageResourcePatternResolver Java Examples
The following examples show how to use
org.springframework.cloud.aws.core.io.s3.PathMatchingSimpleStorageResourcePatternResolver.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WallRideInitializer.java From wallride with Apache License 2.0 | 5 votes |
public static ResourceLoader createResourceLoader() { ClientConfiguration configuration = new ClientConfiguration(); configuration.setMaxConnections(1000); AmazonS3 amazonS3 = new AmazonS3Client(configuration); SimpleStorageProtocolResolver protocolResolver = new SimpleStorageProtocolResolver(amazonS3); protocolResolver.afterPropertiesSet(); DefaultResourceLoader resourceLoader = new DefaultResourceLoader(); resourceLoader.addProtocolResolver(protocolResolver); ResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolver(resourceLoader); return new PathMatchingSimpleStorageResourcePatternResolver(amazonS3, resourceResolver); }
Example #2
Source File: PathMatchingResourceLoaderAwsTest.java From spring-cloud-aws with Apache License 2.0 | 4 votes |
@Autowired public void setupResolver(ApplicationContext applicationContext, AmazonS3 amazonS3) { this.resourceLoader = new PathMatchingSimpleStorageResourcePatternResolver( amazonS3, applicationContext); }
Example #3
Source File: SpringCloudS3.java From tutorials with MIT License | 4 votes |
@Autowired public void setupResolver(ApplicationContext applicationContext, AmazonS3 amazonS3) { this.resourcePatternResolver = new PathMatchingSimpleStorageResourcePatternResolver(amazonS3, applicationContext); }