public class DefaultExcerptProjector extends Object implements ExcerptProjector
DefaultedPageable implementation of ExcerptProjector that uses the given ProjectionFactory
and considers the given ResourceMappings.| Constructor and Description |
|---|
DefaultExcerptProjector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasExcerptProjection(Class<?> type)
Returns whether an excerpt projection has been registered for the given type.
|
Object |
projectExcerpt(Object source)
Creates a excerpt projection for the given source.
|
public Object projectExcerpt(Object source)
ExcerptProjector#project(Object). If you completely wish to skip handling the object, check for the
presence of an excerpt projection using ExcerptProjector.hasExcerptProjection(Class).projectExcerpt in interface ExcerptProjectorsource - must not be null.public boolean hasExcerptProjection(Class<?> type)
ExcerptProjectorhasExcerptProjection in interface ExcerptProjectortype - must not be null.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.