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 Type
    Method
    Description
    make(Properties config)
    The factory method to generate the Validator instance
    Unique name of this Validator service
  • Method Details

    • name

      String name()
      Unique name of this Validator service
      Specified by:
      name in interface org.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