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