@Component public class TargetHolder extends Object implements ApplicationEventPublisherAware
Constructor and Description |
---|
TargetHolder(RestTemplate restTemplate) |
Modifier and Type | Method and Description |
---|---|
void |
changeTarget(Target target,
String credentialsProviderCommand)
Set the Skipper Server
Target . |
Target |
getTarget()
Return the
Target which encapsulates not only the Target URI but also
success/error messages + status. |
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
public TargetHolder(RestTemplate restTemplate)
public Target getTarget()
Target
which encapsulates not only the Target URI but also
success/error messages + status.public void changeTarget(Target target, String credentialsProviderCommand) throws Exception
Target
.target
- Must not be null.credentialsProviderCommand
- Exception
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface ApplicationEventPublisherAware
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.