org.openstreetmap.osmosis.core.sort.v0_5
Class ChangeSorterFactory

java.lang.Object
  extended by org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory
      extended by org.openstreetmap.osmosis.core.sort.v0_5.ChangeSorterFactory

public class ChangeSorterFactory
extends TaskManagerFactory

The task manager factory for a change sorter.

Author:
Brett Henderson

Constructor Summary
ChangeSorterFactory()
          Creates a new instance.
 
Method Summary
protected  TaskManager createTaskManagerImpl(TaskConfiguration taskConfig)
          Create a new task manager containing a task instance.
 void registerComparator(java.lang.String comparatorType, java.util.Comparator<ChangeContainer> comparator, boolean setAsDefault)
          Registers a new comparator.
 
Methods inherited from class org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory
createTaskManager, doesArgumentExist, getBooleanArgument, getDateArgument, getDateArgument, getDefaultIntegerArgument, getDefaultStringArgument, getDoubleArgument, getIntegerArgument, getIntegerArgument, getStringArgument, getStringArgument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeSorterFactory

public ChangeSorterFactory()
Creates a new instance.

Method Detail

registerComparator

public void registerComparator(java.lang.String comparatorType,
                               java.util.Comparator<ChangeContainer> comparator,
                               boolean setAsDefault)
Registers a new comparator.

Parameters:
comparatorType - The name of the comparator.
comparator - The comparator.
setAsDefault - If true, this will be set to be the default comparator if no comparator is specified.

createTaskManagerImpl

protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig)
Create a new task manager containing a task instance.

Specified by:
createTaskManagerImpl in class TaskManagerFactory
Parameters:
taskConfig - Contains all information required to instantiate and configure the task.
Returns:
The newly created task manager.