Interface ValidatorFactory
- All Superinterfaces:
org.apache.daffodil.lib.util.SimpleNamedLoadableService
public interface ValidatorFactory
extends org.apache.daffodil.lib.util.SimpleNamedLoadableService
Implement this trait and register with SPI to provide runtime discovery of Validator implementations
The factory implementations must be thread safe
-
Method Summary
Modifier and TypeMethodDescriptionmake
(Properties config) The factory method to generate the Validator instancename()
Unique name of this Validator service
-
Method Details
-
name
String name()Unique name of this Validator service- Specified by:
name
in interfaceorg.apache.daffodil.lib.util.SimpleNamedLoadableService
- Returns:
- registered name of the validator factory
-
make
The factory method to generate the Validator instance- Parameters:
config
- java.util.Properties to pass to validator instance- Returns:
Validator
instance ready to execute- Throws:
ValidatorInitializationException
- when initialization fails
-