@Bean
	public DeploymentListener deploymentListener() {
		initializeZooKeeperConnection();
		StreamFactory streamFactory = new StreamFactory(streamDefinitionRepository, moduleRegistry,
				moduleOptionsMetadataResolver);

		JobFactory jobFactory = new JobFactory(jobDefinitionRepository, moduleRegistry,
				moduleOptionsMetadataResolver);
		return new DeploymentListener(zooKeeperConnection, moduleDeployer, containerAttributes, jobFactory,
				streamFactory);
	}
Container Application Context

@author David Turanski
@author Ilayaperumal Gopinathan
@author Marius Bogoevici
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/server/container/ContainerConfiguration.java