Interface DifferConfigurer

All Known Implementing Classes:
DifferService

public interface DifferConfigurer
Created by Daniel Bechler.
  • Method Summary

    Modifier and Type
    Method
    Description
    register(DifferFactory differFactory)
    Registers a new Differ to be used when comparing objects.
  • Method Details

    • register

      ObjectDifferBuilder register(DifferFactory differFactory)
      Registers a new Differ to be used when comparing objects. Differs that have been registered later always win over earlier Differs. This way it is easily possible to override the default behavior, without actually removing the standard differs.
      Parameters:
      differFactory - Factory that creates a new Differ. Will be called exactly once and the resulting Differ will be pushed to the underlying DifferProvider.
      Returns:
      The ObjectDifferBuilder for chaining.