public class AppRegistry extends Object
UriRegistry that operates on higher level
AppRegistration objects and supports on-demand loading of Resources.
Stores AppRegistration with up to two keys:
| Constructor and Description |
|---|
AppRegistry(org.springframework.cloud.deployer.resource.registry.UriRegistry uriRegistry,
ResourceLoader resourceLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String name,
ApplicationType type)
Deletes an
AppRegistration. |
AppRegistration |
find(String name,
ApplicationType type) |
List<AppRegistration> |
findAll() |
List<AppRegistration> |
importAll(boolean overwrite,
Resource... resources) |
AppRegistration |
save(String name,
ApplicationType type,
URI uri,
URI metadataUri) |
public AppRegistry(org.springframework.cloud.deployer.resource.registry.UriRegistry uriRegistry,
ResourceLoader resourceLoader)
public AppRegistration find(String name, ApplicationType type)
public List<AppRegistration> findAll()
public AppRegistration save(String name, ApplicationType type, URI uri, URI metadataUri)
public List<AppRegistration> importAll(boolean overwrite, Resource... resources)
public void delete(String name, ApplicationType type)
AppRegistration. If the AppRegistration does not
exist, a NoSuchAppRegistrationException will be thrown.name - Name of the AppRegistration to deletetype - Type of the AppRegistration to deleteCopyright © 2017 Pivotal Software, Inc.. All rights reserved.