public interface ResultAdapterContext
This interface is used to register result adapters and later call on them to adapt the results to the appropriate type.
| Modifier and Type | Method and Description |
|---|---|
Object |
adapt(Invocation invocation,
Object originalResult)
Will call the registered result adapters to adapt the results to the required type.
|
Collection<ResultAdapter<?>> |
getAdapters() |
void |
register(ResultAdapter<?> adapter)
Registers a new result adapter with this context
|
void register(ResultAdapter<?> adapter)
adapter - the adapterObject adapt(Invocation invocation, Object originalResult)
invocation - the invocation for which we are adapting the resultsoriginalResult - the original result from the data store operationCollection<ResultAdapter<?>> getAdapters()
Copyright © 2014–2016. All rights reserved.