Interface InvariantCheckerHandle.Factory

Enclosing interface:
InvariantCheckerHandle

public static interface InvariantCheckerHandle.Factory
Factory for creating InvariantCheckerHandle instances. Discovered via ServiceLoader from tnsai-quality.
  • Method Details

    • create

      InvariantCheckerHandle create(Object target, boolean strictMode)
      Creates a new invariant checker handle for the given target.
      Parameters:
      target - the object to check invariants on
      strictMode - if true, throws exceptions; if false, only logs warnings
      Returns:
      new handle instance
    • discover

      static InvariantCheckerHandle.Factory discover()
      Discovers a Factory via ServiceLoader.
      Returns:
      discovered factory, or null if tnsai-quality is not on classpath