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.name
ApplicationContext
'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.ApplicationContextAware
org.springframework.beans.BeansException
public String getTaskName()
getTaskName
in interface TaskNameResolver
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.