- java.lang.Object
-
- org.leadpony.justify.spi.JsonValidationProvider
-
public abstract class JsonValidationProvider extends Object
Service provider for JSON validation objects.All the public methods in this class are safe for use by multiple concurrent threads. This type is not intended to be used directly by end users.
- Author:
- leadpony
- See Also:
ServiceLoader
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsonValidationProvider()Constructs this provider.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract JsonValidationServicecreateService()Creates a new instance ofJsonValidationService.static JsonValidationProviderprovider()Returns an instance of this provider class.
-
-
-
Method Detail
-
provider
public static JsonValidationProvider provider()
Returns an instance of this provider class.- Returns:
- the instance of this provider class.
- Throws:
JsonException- if there is no provider found.
-
createService
public abstract JsonValidationService createService()
Creates a new instance ofJsonValidationService.- Returns:
- newly created instance of
JsonValidationService. - Throws:
JsonException- if an error is encountered while creating the instance.
-
-