Class DiffXFactory

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

public final class DiffXFactory extends Object
Factory for creating a Diff-X algorithm instance.
Version:
11 May 2010
  • Field Details

    • ARGS

      private static final Class<?>[] 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.
      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.