Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // This software is released into the Public Domain.  See copying.txt for details.
 package org.openstreetmap.osmosis.replication;
 
 import java.util.Map;
 
The plugin loader for the replication tasks.

Author(s):
Brett Henderson
public class ReplicationPluginLoader implements PluginLoader {

		factoryMap = new HashMap<StringTaskManagerFactory>();
		factoryMap.put("read-change-interval"new IntervalDownloaderFactory());
		factoryMap.put("rci"new IntervalDownloaderFactory());
		factoryMap.put("read-change-interval-init"new IntervalDownloaderInitializerFactory());
		factoryMap.put("rcii"new IntervalDownloaderInitializerFactory());
		factoryMap.put("read-replication-interval"new ReplicationDownloaderFactory());
		factoryMap.put("rri"new ReplicationDownloaderFactory());
		factoryMap.put("read-replication-interval-init"new ReplicationDownloaderInitializerFactory());
		factoryMap.put("rrii"new ReplicationDownloaderInitializerFactory());
		factoryMap.put("merge-replication-files"new ReplicationFileMergerFactory());
		factoryMap.put("mrf"new ReplicationFileMergerFactory());
		factoryMap.put("merge-replication-files-init"new ReplicationFileMergerInitializerFactory());
		factoryMap.put("mrfi"new ReplicationFileMergerInitializerFactory());
		factoryMap.put("read-replication-lag"new ReplicationLagReaderFactory());
		factoryMap.put("rrl"new ReplicationLagReaderFactory());
		factoryMap.put("write-replication"new ReplicationWriterFactory());
		factoryMap.put("wr"new ReplicationWriterFactory());
		factoryMap.put("replication-to-change"new ReplicationToChangeWriterFactory());
		factoryMap.put("rtc"new ReplicationToChangeWriterFactory());
		factoryMap.put("read-change-interval-0.6"new IntervalDownloaderFactory());
		factoryMap.put("read-change-interval-init-0.6"new IntervalDownloaderInitializerFactory());
		factoryMap.put("read-replication-interval-0.6"new ReplicationDownloaderFactory());
		factoryMap.put("read-replication-interval-init-0.6"new ReplicationDownloaderInitializerFactory());
		factoryMap.put("merge-replication-files-0.6"new ReplicationFileMergerFactory());
		factoryMap.put("merge-replication-files-init-0.6"new ReplicationFileMergerInitializerFactory());
		factoryMap.put("read-replication-lag-0.6"new ReplicationLagReaderFactory());
		factoryMap.put("write-replication-0.6"new ReplicationWriterFactory());
		factoryMap.put("replication-to-change-0.6"new ReplicationToChangeWriterFactory());
		return factoryMap;
	}
New to GrepCode? Check out our FAQ X