Deprecate the use of spring.cloud.task.batch.listener.enable

replace it with spring.cloud.task.batch.listener.enabled

resolves #379
This commit is contained in:
Glenn Renfro
2018-02-01 17:47:23 -05:00
committed by Michael Minella
parent 16efd486d8
commit b6f6d68385
2 changed files with 54 additions and 1 deletions

View File

@@ -32,11 +32,14 @@ import org.springframework.context.annotation.Configuration;
/**
* Provides auto configuration for the {@link TaskBatchExecutionListener}.
*
* The spring.cloud.task.batch.listener.enable is deprecated,
* spring.cloud.task.batch.listener.enabled should be used.
*
* @author Michael Minella
*/
@Configuration
@ConditionalOnBean({Job.class})
@ConditionalOnProperty(name = "spring.cloud.task.batch.listener.enable", havingValue = "true", matchIfMissing = true)
@ConditionalOnProperty(name = {"spring.cloud.task.batch.listener.enable", "spring.cloud.task.batch.listener.enabled"}, havingValue = "true", matchIfMissing = true)
public class TaskBatchAutoConfiguration {
@Bean