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 io.awspring.cloud.core.config.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
  • Constructor Details

    • S3PropertySource

      public S3PropertySource(String context, software.amazon.awssdk.services.s3.S3Client s3Client)
  • Method Details

    • init

      public void init()
      Loads the properties from the S3.
      Specified by:
      init in class io.awspring.cloud.core.config.AwsPropertySource<S3PropertySource,software.amazon.awssdk.services.s3.S3Client>
    • copy

      public S3PropertySource copy()
      Specified by:
      copy in class io.awspring.cloud.core.config.AwsPropertySource<S3PropertySource,software.amazon.awssdk.services.s3.S3Client>
    • getPropertyNames

      public String[] getPropertyNames()
      Specified by:
      getPropertyNames in class EnumerablePropertySource<software.amazon.awssdk.services.s3.S3Client>
    • getProperty

      public Object getProperty(String name)
      Specified by:
      getProperty in class PropertySource<software.amazon.awssdk.services.s3.S3Client>