Package com.topologi.diffx.algorithm
Class DiffXFactory
java.lang.Object
com.topologi.diffx.algorithm.DiffXFactory
Factory for creating a Diff-X algorithm instance.
- Version:
- 11 May 2010
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DiffXAlgorithmcreateDiffex(String className, EventSequence sequence1, EventSequence sequence2) Deprecated.static DiffXAlgorithmnewAlgorithm(String className, EventSequence sequence1, EventSequence sequence2) Creates a Diff-X instance using the specified class name and event sequences.
-
Field Details
-
ARGS
The classes of the arguments of the constructor.
-
-
Constructor Details
-
DiffXFactory
private DiffXFactory()Private constructor.This constructor prevents the class from being instantiated.
-
-
Method Details
-
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.usenewAlgorithmCreates 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.
-
newAlgorithm