Package ro.sync.diff.api
Class DiffPerformerFactory
java.lang.Object
ro.sync.diff.api.DiffPerformerFactory
Factory used to create a difference performer, used to compare two resources using different
algorithms and options.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorDifferencePerformer
Create an Author difference performer.static DifferencePerformer
Create difference performer.static void
registerLicenseKey
(Reader licenseReader) The license key reader to the diff performer factory.
-
Constructor Details
-
DiffPerformerFactory
public DiffPerformerFactory()
-
-
Method Details
-
createDiffPerformer
Create difference performer.- Returns:
- a difference performer that can be used to compare two resources using different algorithms and options.
- Throws:
DiffException
- When it fails to create the diff performer.
-
createAuthorDiffPerformer
Create an Author difference performer.- Returns:
- a difference performer that can be used to compare Author documents using different algorithms and options.
- Throws:
DiffException
- When it fails to create the diff performer.
-
registerLicenseKey
The license key reader to the diff performer factory.- Parameters:
licenseReader
- The reader from where the license should be read.- Throws:
DiffException
- Thrown if the license could not be read.
-