@Test public void typicalAmazonClient() { AmazonS3 amazonS3 = commonBeans.amazonS3(); URL url = amazonS3.getUrl(BUCKET, KEY); assertThat(url.getHost()).isEqualTo(String.join(".", BUCKET, AWS_ENDPOINT)); }
@Bean @Profile("default") public AmazonS3 amazonS3() { return AmazonS3ClientBuilder.defaultClient(); }
CommonBeans { @Bean @Profile("default") public AmazonS3 amazonS3() { return AmazonS3ClientBuilder.defaultClient(); } }
CommonBeans { @Bean @Profile("default") public AmazonS3 amazonS3() { return AmazonS3ClientBuilder.defaultClient(); }  }
CommonBeans { @Bean @Profile("default") public AmazonS3 amazonS3() { return AmazonS3ClientBuilder.defaultClient(); }  @Bean HiveConf hiveConf(@Value("${properties.metastore-uri}") String metastoreUri); @Bean CloseableMetaStoreClientFactory metaStoreClientFactory(); @Bean(name = "hiveClientFactory") CleanerClientFactory clientFactory(
      Supplier<CloseableMetaStoreClient> metaStoreClientSupplier,
      @Value("${properties.dry-run-enabled}") boolean dryRunEnabled); @Bean DeletedMetadataReporter deletedMetadataReporter(
      MeterRegistry meterRegistry,
      @Value("${properties.dry-run-enabled}") boolean dryRunEnabled); @Bean @Profile("default") AmazonS3 amazonS3(); @Bean S3Client s3Client(AmazonS3 amazonS3, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled); @Bean(name = "expiredMetadataHandler") ExpiredMetadataHandler expiredMetadataHandler(
      @Qualifier("hiveClientFactory") CleanerClientFactory cleanerClientFactory,
      HousekeepingMetadataRepository housekeepingMetadataRepository,
      @Qualifier("hiveTableCleaner") MetadataCleaner metadataCleaner,
      @Qualifier("s3PathCleaner") PathCleaner pathCleaner); }
CommonBeans { @Bean @Profile("default") public AmazonS3 amazonS3() { return AmazonS3ClientBuilder.defaultClient(); }  @Bean HiveConf hiveConf(@Value("${properties.metastore-uri}") String metastoreUri); @Bean CloseableMetaStoreClientFactory metaStoreClientFactory(); @Bean(name = "hiveClientFactory") CleanerClientFactory clientFactory(
      Supplier<CloseableMetaStoreClient> metaStoreClientSupplier,
      @Value("${properties.dry-run-enabled}") boolean dryRunEnabled); @Bean DeletedMetadataReporter deletedMetadataReporter(
      MeterRegistry meterRegistry,
      @Value("${properties.dry-run-enabled}") boolean dryRunEnabled); @Bean @Profile("default") AmazonS3 amazonS3(); @Bean S3Client s3Client(AmazonS3 amazonS3, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled); @Bean(name = "expiredMetadataHandler") ExpiredMetadataHandler expiredMetadataHandler(
      @Qualifier("hiveClientFactory") CleanerClientFactory cleanerClientFactory,
      HousekeepingMetadataRepository housekeepingMetadataRepository,
      @Qualifier("hiveTableCleaner") MetadataCleaner metadataCleaner,
      @Qualifier("s3PathCleaner") PathCleaner pathCleaner);  }