public class SameTypeResultAdapter extends AbstractResultAdapter<Object>
This adapter will accept and adapt results when the request result type is of the same type or a super type of the available value.
This adapter runs at priority -500.
| Constructor and Description |
|---|
SameTypeResultAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Invocation invocation,
Object originalValue)
Called to determine whether or not this adapter can adapt the original value passed down from a data
store operation to the type required by the repository method being invoked
|
Object |
adapt(Invocation invocation,
Object originalValue)
Called when we need to adapt the result from an invocation to the result required by the repository method
|
compareTo, getPrioritypublic boolean accepts(Invocation invocation, Object originalValue)
ResultAdapterinvocation - the invocationoriginalValue - the original valuepublic Object adapt(Invocation invocation, Object originalValue)
ResultAdapterinvocation - the repository method invocationoriginalValue - the original value returned from a data store operationCopyright © 2014–2016. All rights reserved.