com.topologi.diffx.algorithm
Class DiffXFactory

java.lang.Object
  extended by com.topologi.diffx.algorithm.DiffXFactory

public final class DiffXFactory
extends Object

Factory for creating a Diff-X algorithm instance.

Version:
11 May 2010
Author:
Christophe Lauret

Method Summary
static DiffXAlgorithm createDiffex(String className, EventSequence sequence1, EventSequence sequence2)
          Deprecated. use newAlgorithm
static DiffXAlgorithm newAlgorithm(String className, EventSequence sequence1, EventSequence sequence2)
          Creates a Diff-X instance using the specified class name and event sequences.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newAlgorithm

public static DiffXAlgorithm newAlgorithm(String className,
                                          EventSequence sequence1,
                                          EventSequence sequence2)
                                   throws FactoryException
Creates a Diff-X instance using the specified class name and event sequences.

Parameters:
className - The class name of the Diff-X algorithm implementation to use.
sequence1 - The first sequence to use for the Diff-X constructor.
sequence2 - The second sequence to use for the Diff-X constructor.
Returns:
A Diff-X algorithm instance.
Throws:
FactoryException - Should an error occur when trying to instantiate the class.

createDiffex

@Deprecated
public static DiffXAlgorithm createDiffex(String className,
                                                     EventSequence sequence1,
                                                     EventSequence sequence2)
                                   throws FactoryException
Deprecated. use newAlgorithm

Creates a Diff-X instance using the specified class name and event sequences.

Parameters:
className - The class name of the Diff-X implementation to use.
sequence1 - The first sequence to use for the Diff-X constructor.
sequence2 - The second sequence to use for the Diff-X constructor.
Returns:
A Diff-X algorithm instance.
Throws:
FactoryException - Should an error occur when trying to instantiate the class.