public class RepresentationModelProcessorInvoker extends Object
RepresentationModelProcessor instances registered for values of type
RepresentationModel.| Modifier and Type | Class and Description |
|---|---|
static class |
RepresentationModelProcessorInvoker.CollectionModelProcessorWrapper
|
| Constructor and Description |
|---|
RepresentationModelProcessorInvoker(Collection<RepresentationModelProcessor<?>> processors)
Creates a new
RepresentationModelProcessorInvoker to consider the given
RepresentationModelProcessor to post-process the controller methods return value to before invoking the
delegate. |
| Modifier and Type | Method and Description |
|---|---|
<T extends RepresentationModel<T>> |
invokeProcessorsFor(T value)
Invokes all
RepresentationModelProcessor instances registered for the type of the given value. |
<T extends RepresentationModel<T>> |
invokeProcessorsFor(T value,
ResolvableType referenceType)
Invokes all
RepresentationModelProcessor instances registered for the type of the given value and reference
type. |
public RepresentationModelProcessorInvoker(Collection<RepresentationModelProcessor<?>> processors)
RepresentationModelProcessorInvoker to consider the given
RepresentationModelProcessor to post-process the controller methods return value to before invoking the
delegate.processors - the RepresentationModelProcessors to be considered, must not be null.public <T extends RepresentationModel<T>> T invokeProcessorsFor(T value)
RepresentationModelProcessor instances registered for the type of the given value.value - must not be null.public <T extends RepresentationModel<T>> T invokeProcessorsFor(T value, ResolvableType referenceType)
RepresentationModelProcessor instances registered for the type of the given value and reference
type.value - must not be null.referenceType - must not be null.Copyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.