@Component @Configuration @EnableHypermediaSupport(type=HAL) public class ConfigCommands extends Object implements CommandMarker, InitializingBean, ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>, ApplicationContextAware
http://localhost:9393
Modifier and Type | Field and Description |
---|---|
static String |
HORIZONTAL_LINE |
Constructor and Description |
---|
ConfigCommands() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
String |
info() |
void |
onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) |
static RestTemplate |
restTemplate() |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setCommandLine(CommandLine commandLine) |
void |
setDataFlowShell(DataFlowShell shell) |
void |
setRestTemplate(RestTemplate restTemplate) |
void |
setServerUri(String serverUri) |
void |
setTargetHolder(TargetHolder targetHolder) |
void |
setUserInput(UserInput userInput) |
String |
target(String targetUriString,
String targetUsername,
String targetPassword) |
public static final String HORIZONTAL_LINE
@Autowired public void setCommandLine(CommandLine commandLine)
@Autowired public void setUserInput(UserInput userInput)
@Autowired public void setTargetHolder(TargetHolder targetHolder)
@Autowired public void setDataFlowShell(DataFlowShell shell)
@Autowired public void setRestTemplate(RestTemplate restTemplate)
public void setServerUri(String serverUri)
@CliCommand(value="dataflow config server", help="Configure the Spring Cloud Data Flow REST server to use") public String target(@CliOption(mandatory=false,key={"","uri"},help="the location of the Spring Cloud Data Flow REST endpoint",unspecifiedDefaultValue="http://localhost:9393/") String targetUriString, @CliOption(mandatory=false,key="username",help="the username for authenticated access to the Admin REST endpoint",unspecifiedDefaultValue="") String targetUsername, @CliOption(mandatory=false,key="password",help="the password for authenticated access to the Admin REST endpoint (valid only with a username)",specifiedDefaultValue="",unspecifiedDefaultValue="__NULL__") String targetPassword)
@CliCommand(value="dataflow config info", help="Show the Dataflow server being used") public String info()
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event)
onApplicationEvent
in interface ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
@Bean public static RestTemplate restTemplate()
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.