Package io.awspring.cloud.s3.config
Class S3PropertySource
java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<T>
io.awspring.cloud.core.config.AwsPropertySource<S3PropertySource,software.amazon.awssdk.services.s3.S3Client>
io.awspring.cloud.s3.config.S3PropertySource
public class S3PropertySource
extends AwsPropertySource<S3PropertySource,software.amazon.awssdk.services.s3.S3Client>
Retrieves property sources path from the AWS S3 using the provided S3 client.
- Since:
- 3.3.0
- Author:
- Kunal Varpe, Matej Nedic
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource
PropertySource.StubPropertySource
-
Field Summary
Fields inherited from class org.springframework.core.env.PropertySource
logger, name, source
-
Constructor Summary
ConstructorsConstructorDescriptionS3PropertySource
(String context, software.amazon.awssdk.services.s3.S3Client s3Client) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a non-initialized copy of the property source.getProperty
(String name) String[]
void
init()
Loads the properties from the S3.Methods inherited from class org.springframework.core.env.EnumerablePropertySource
containsProperty
-
Constructor Details
-
S3PropertySource
-
-
Method Details
-
init
public void init()Loads the properties from the S3.- Specified by:
init
in classAwsPropertySource<S3PropertySource,
software.amazon.awssdk.services.s3.S3Client>
-
copy
Description copied from class:AwsPropertySource
Creates a non-initialized copy of the property source.- Specified by:
copy
in classAwsPropertySource<S3PropertySource,
software.amazon.awssdk.services.s3.S3Client> - Returns:
- a property source
-
getPropertyNames
- Specified by:
getPropertyNames
in classEnumerablePropertySource<software.amazon.awssdk.services.s3.S3Client>
-
getProperty
- Specified by:
getProperty
in classPropertySource<software.amazon.awssdk.services.s3.S3Client>
-