Interface GeneratorPlugin
- All Known Implementing Classes:
DatafakerGeneratorPlugin
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Service-provider interface that lets a jar contribute custom generator rules to a
GeneratorRegistry without subclassing DatabaseSupport.
Implementations register matchers (column-name pattern, vendor type name, and/or
JDBCType) on the supplied GeneratorRegistry.Builder. Plugins are
picked up automatically by GeneratorRegistry.Builder.discover() via the standard
ServiceLoader mechanism: declare the implementation in
META-INF/services/io.bloviate.ext.GeneratorPlugin. They can also be registered
explicitly with GeneratorRegistry.Builder.register(GeneratorPlugin).
Generators contributed this way remain reproducible: the fill engine constructs each generator with an engine-managed seed, exactly as it does for built-in generators.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcontribute(GeneratorRegistry.Builder builder) Contributes generator rules to the registry under construction.
-
Method Details
-
contribute
Contributes generator rules to the registry under construction.- Parameters:
builder- the registry builder to register matchers on
-