- Type Parameters:
T- The type of extended predicate factories. Should generally extend
public interface SearchPredicateFactoryExtension<T>An extension to the search predicate DSL, allowing the use of non-standard predicates in a query.
WARNING: while this type is API, because instances should be manipulated by users, all of its methods are considered SPIs and therefore should never be called or implemented directly by users. In short, users are only expected to get instances of this type from an API (
SomeExtension.get()) and pass it to another API.
Optional<T> extendOptional(SearchPredicateFactory original, SearchPredicateDslContext<?> dslContext)Attempt to extend a given factory, returning an empty
Optionalin case of failure.
WARNING: this method is not API, see comments at the type level.