@Test void cleanupService() { CleanupService cleanupService = commonBeans.cleanupService(Collections.emptyList(), 2, dryRunEnabled); assertThat(cleanupService).isInstanceOf(PagingPathCleanupService.class); }
@Bean CleanupService cleanupService( List<GenericPathHandler> pathHandlers, @Value("${properties.cleanup-page-size}") int pageSize, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled) { return new PagingPathCleanupService(pathHandlers, pageSize, dryRunEnabled); }
CommonBeans { @Bean CleanupService cleanupService( List<GenericPathHandler> pathHandlers, @Value("${properties.cleanup-page-size}") int pageSize, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled) { return new PagingPathCleanupService(pathHandlers, pageSize, dryRunEnabled); } }
CommonBeans { @Bean CleanupService cleanupService( List<GenericPathHandler> pathHandlers, @Value("${properties.cleanup-page-size}") int pageSize, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled) { return new PagingPathCleanupService(pathHandlers, pageSize, dryRunEnabled); }  }
CommonBeans { @Bean CleanupService cleanupService( List<GenericPathHandler> pathHandlers, @Value("${properties.cleanup-page-size}") int pageSize, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled) { return new PagingPathCleanupService(pathHandlers, pageSize, dryRunEnabled); }  @Bean @Profile("default") AmazonS3 amazonS3(); @Bean S3Client s3Client(AmazonS3 amazonS3, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled); }
CommonBeans { @Bean CleanupService cleanupService( List<GenericPathHandler> pathHandlers, @Value("${properties.cleanup-page-size}") int pageSize, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled) { return new PagingPathCleanupService(pathHandlers, pageSize, dryRunEnabled); }  @Bean @Profile("default") AmazonS3 amazonS3(); @Bean S3Client s3Client(AmazonS3 amazonS3, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled);  }