public class SimpleTaskNameResolver extends Object implements TaskNameResolver, org.springframework.context.ApplicationContextAware
TaskNameResolver interface. Names the task based
on the following order of precidence:
spring.cloud.task.nameApplicationContext's id.ContextIdApplicationContextInitializer| Constructor and Description |
|---|
SimpleTaskNameResolver() |
| Modifier and Type | Method and Description |
|---|---|
String |
getTaskName() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setConfiguredName(String configuredName) |
@Value(value="${spring.cloud.task.name:}")
public void setConfiguredName(String configuredName)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic String getTaskName()
getTaskName in interface TaskNameResolverCopyright © 2019 Pivotal Software, Inc.. All rights reserved.