Class ProjectionBindingContextImpl.MultiContextImpl<PV>
java.lang.Object
org.hibernate.search.mapper.pojo.search.definition.binding.impl.ProjectionBindingContextImpl.MultiContextImpl<PV>
- All Implemented Interfaces:
ProjectionBindingMultiContext
- Enclosing class:
- ProjectionBindingContextImpl<P>
public class ProjectionBindingContextImpl.MultiContextImpl<PV>
extends Object
implements ProjectionBindingMultiContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<P2> voiddefinition(Class<P2> expectedValueType, BeanHolder<? extends ProjectionDefinition<? extends List<? extends P2>>> definitionHolder) Binds the constructor parameter to the given multi-valued projection definition.<P2> voiddefinition(Class<P2> expectedValueType, ProjectionDefinition<? extends List<? extends P2>> definition) Binds the constructor parameter to the given multi-valued projection definition.
-
Field Details
-
parameterContainerElementTypeModel
-
-
Constructor Details
-
MultiContextImpl
-
-
Method Details
-
definition
public <P2> void definition(Class<P2> expectedValueType, ProjectionDefinition<? extends List<? extends P2>> definition) Description copied from interface:ProjectionBindingMultiContextBinds the constructor parameter to the given multi-valued projection definition.- Specified by:
definitionin interfaceProjectionBindingMultiContext- Type Parameters:
P2- The type of values returned by the projection.- Parameters:
expectedValueType- The expected type of elements of the constructor parameter, which must be compatible with the element type of lists returned by the projection definition. Hibernate Search will check that these expectations are met, and throw an exception if they are not. Note this is not the type of the constructor parameter, but of its elements; i.e. for a constructor parameter of typeList<String>,expectedValueTypeshould be set toString.class.definition- A definition of the projection to bind to the constructor parameter.
-
definition
public <P2> void definition(Class<P2> expectedValueType, BeanHolder<? extends ProjectionDefinition<? extends List<? extends P2>>> definitionHolder) Description copied from interface:ProjectionBindingMultiContextBinds the constructor parameter to the given multi-valued projection definition.- Specified by:
definitionin interfaceProjectionBindingMultiContext- Type Parameters:
P2- The type of values returned by the projection.- Parameters:
expectedValueType- The expected type of elements of the constructor parameter, which must be compatible with the element type of lists returned by the projection definition. Hibernate Search will check that these expectations are met, and throw an exception if they are not. Note this is not the type of the constructor parameter, but of its elements; i.e. for a constructor parameter of typeList<String>,expectedValueTypeshould be set toString.class.definitionHolder- ABeanHoldercontaining the definition of the projection to bind to the constructor parameter.
-
containerElement
- Specified by:
containerElementin interfaceProjectionBindingMultiContext- Returns:
- An entry point allowing to inspect the constructor parameter being bound to a projection.
-