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 Type
    Method
    Description
    boolean
    Returns whether an excerpt projection has been registered for the given type.
    Creates a excerpt projection for the given source.
  • Method Details

    • projectExcerpt

      Object projectExcerpt(Object source)
      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 using hasExcerptProjection(Class).
      Parameters:
      source - must not be null.
      Returns:
    • hasExcerptProjection

      boolean hasExcerptProjection(Class<?> type)
      Returns whether an excerpt projection has been registered for the given type.
      Parameters:
      type - must not be null.
      Returns: