T
- The type of extended search factory contexts. Should generally extend
SearchPredicateFactoryContext
.public interface SearchPredicateFactoryContextExtension<T>
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.
Modifier and Type | Method and Description |
---|---|
<C,B> Optional<T> |
extendOptional(SearchPredicateFactoryContext original,
SearchPredicateBuilderFactory<C,B> factory)
Attempt to extend a given context, returning an empty
Optional in case of failure. |
<C,B> Optional<T> extendOptional(SearchPredicateFactoryContext original, SearchPredicateBuilderFactory<C,B> factory)
Optional
in case of failure.
WARNING: this method is not API, see comments at the type level.
C
- The type of query element collector for the given predicate builder factory.B
- The implementation type of builders for the given predicate builder factory.original
- The original, non-extended SearchPredicateFactoryContext
.factory
- A SearchPredicateBuilderFactory
.T
) in case
of success, or an empty optional otherwise.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.