Package com.tnsai.invariants
Interface InvariantCheckerHandle.Factory
- Enclosing interface:
InvariantCheckerHandle
public static interface InvariantCheckerHandle.Factory
Factory for creating InvariantCheckerHandle instances.
Discovered via ServiceLoader from tnsai-quality.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new invariant checker handle for the given target.discover()Discovers a Factory via ServiceLoader.
-
Method Details
-
create
Creates a new invariant checker handle for the given target.- Parameters:
target- the object to check invariants onstrictMode- if true, throws exceptions; if false, only logs warnings- Returns:
- new handle instance
-
discover
Discovers a Factory via ServiceLoader.- Returns:
- discovered factory, or null if tnsai-quality is not on classpath
-