@Component public class ClassicAppRegistryCommands extends AbstractAppRegistryCommands implements org.springframework.shell.core.CommandMarker, org.springframework.context.ResourceLoaderAware
AbstractAppRegistryCommands.QualifiedApplicationName
dataFlowShell, resourceLoader
Constructor and Description |
---|
ClassicAppRegistryCommands() |
Modifier and Type | Method and Description |
---|---|
boolean |
availableWithCreateRole() |
boolean |
availableWithViewRole() |
List<Object> |
info(AbstractAppRegistryCommands.QualifiedApplicationName application) |
void |
setDataFlowShell(DataFlowShell dataFlowShell) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
String |
unregister(String name,
ApplicationType type) |
appRegistryOperations, importFromResource, list, prettyPrintDefaultValue, register
@Autowired public void setDataFlowShell(DataFlowShell dataFlowShell)
setDataFlowShell
in class AbstractAppRegistryCommands
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader
in interface org.springframework.context.ResourceLoaderAware
setResourceLoader
in class AbstractAppRegistryCommands
@CliAvailabilityIndicator(value="app info") public boolean availableWithViewRole()
availableWithViewRole
in class AbstractAppRegistryCommands
@CliAvailabilityIndicator(value="app unregister") public boolean availableWithCreateRole()
availableWithCreateRole
in class AbstractAppRegistryCommands
@CliCommand(value="app info", help="Get information about an application") public List<Object> info(@CliOption(mandatory=true,key={"","id"},help="id of the application to query in the form of \'type:name\'") AbstractAppRegistryCommands.QualifiedApplicationName application)
@CliCommand(value="app unregister", help="Unregister an application") public String unregister(@CliOption(mandatory=true,key={"","name"},help="name of the application to unregister") String name, @CliOption(mandatory=true,key="type",help="type of the application to unregister") ApplicationType type)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.