/** * Deletes an {@link AppRegistration}. If the {@link AppRegistration} does not exist, a * {@link NoSuchAppRegistrationException} will be thrown. * * @param name Name of the AppRegistration to delete * @param type Type of the AppRegistration to delete */ public void delete(String name, ApplicationType type) { if (this.find(name, type) != null) { this.uriRegistry.unregister(key(name, type)); this.uriRegistry.unregister(metadataKey(name, type)); } else { throw new NoSuchAppRegistrationException(name, type); } }
/** * Deletes an {@link AppRegistration}. If the {@link AppRegistration} does not * exist, a {@link NoSuchAppRegistrationException} will be thrown. * * @param name Name of the AppRegistration to delete * @param type Type of the AppRegistration to delete */ public void delete(String name, String type) { if (this.find(name, type) != null) { this.uriRegistry.unregister(key(name, type)); } else { throw new NoSuchAppRegistrationException(name, type); } }