Interface ExcerptProjector
- All Known Subinterfaces:
Projector
- All Known Implementing Classes:
DefaultExcerptProjector
,PersistentEntityProjector
public interface ExcerptProjector
Interface for a component that can provide excerpt projections.
- Since:
- 2.5
- Author:
- Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasExcerptProjection
(Class<?> type) Returns whether an excerpt projection has been registered for the given type.projectExcerpt
(Object source) Creates a excerpt projection for the given source.
-
Method Details
-
projectExcerpt
Creates a excerpt projection for the given source. If no excerpt projection is available, the object will be returned as is. If you completely wish to skip handling the object, check for the presence of an excerpt projection usinghasExcerptProjection(Class)
.- Parameters:
source
- must not be null.- Returns:
-
hasExcerptProjection
Returns whether an excerpt projection has been registered for the given type.- Parameters:
type
- must not be null.- Returns:
-