public interface PredicateGenerator.CriterionHandlerProvider
SPI for contributing a CriterionHandler via java.util.ServiceLoader.
Create an implementation and register it in
META-INF/services/org.grails.orm.hibernate.query.PredicateGenerator$CriterionHandlerProvider
so that it is discovered automatically on first query execution — no BootStrap registration needed.
// Example implementation (Groovy)
class MyHandlerProvider implements PredicateGenerator.CriterionHandlerProvider {
Class<? extends Query.Criterion> criterionType() { MyCriterion }
PredicateGenerator.CriterionHandler criterionHandler() {
{ query, root, cb, criterion -> ... } as PredicateGenerator.CriterionHandler
}
}
| Type Params | Return Type | Name and description |
|---|---|---|
|
public CriterionHandler |
criterionHandler() |
|
public java.lang.Class<? extends Query.Criterion> |
criterionType() |