R - The type of entity references in the parent SearchProjectionFactory.E - The type of entities in the parent SearchProjectionFactory.P - The resulting projection type.public interface SearchProjectionFactoryExtensionIfSupportedStep<P,R,E>
SearchProjectionFactory.SearchProjectionFactory.extension()| Modifier and Type | Method and Description |
|---|---|
<T> SearchProjectionFactoryExtensionIfSupportedMoreStep<P,R,E> |
ifSupported(SearchProjectionFactoryExtension<T,R,E> extension,
Function<T,? extends ProjectionFinalStep<P>> projectionContributor)
If the given extension is supported, and none of the previous extensions passed to
ifSupported(SearchProjectionFactoryExtension, Function)
was supported, extend the current factory with this extension,
apply the given function to the extended factory, and store the resulting projection for later retrieval. |
<T> SearchProjectionFactoryExtensionIfSupportedMoreStep<P,R,E> ifSupported(SearchProjectionFactoryExtension<T,R,E> extension, Function<T,? extends ProjectionFinalStep<P>> projectionContributor)
ifSupported(SearchProjectionFactoryExtension, Function)
was supported, extend the current factory with this extension,
apply the given function to the extended factory, and store the resulting projection for later retrieval.
This method cannot be called after SearchProjectionFactoryExtensionIfSupportedMoreStep.orElse(Function)
or SearchProjectionFactoryExtensionIfSupportedMoreStep.orElseFail().
T - The type of the extended factory.extension - The extension to apply.projectionContributor - A function called if the extension is successfully applied;
it will use the (extended) projection factory passed in parameter to create a projection,
returning the final step in the projection DSL.
Should generally be a lambda expression.this, for method chaining.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.