@Override
	public void undeployAll() {
		for (D definition : findAll()) {
			String name = definition.getName();
			// Make sure we un-deploy only the resources that are already deployed.
			if (instanceRepository.exists(name)) {
				undeploy(name);
			}
		}
	}
Base support class for deployers that know how to deal with {@link BaseInstance instances} of a
{@link BaseDefinition definition}.

@param D the kind of definition this deployer deals with
@param I the corresponding instance type

@author Eric Bottard
@author Ilayaperumal Gopinathan
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/stream/AbstractInstancePersistingDeployer.java