public class TypeHierarchyResultHandler extends Object implements ResultHandler<Object>
ResultHandler that dispatches handling based on the type of the result.
If no direct match is found, the type hierarchy of the result is considered, including implemented interfaces.
Auto-populates the handler map based on Generics type declaration of each discovered ResultHandler in the
ApplicationContext.
| Constructor and Description |
|---|
TypeHierarchyResultHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleResult(Object result)
Deal with some method execution result, whether it was the normal return value, or some kind
of
Throwable. |
void |
setResultHandlers(Set<ResultHandler<?>> resultHandlers) |
public void handleResult(Object result)
ResultHandlerThrowable.handleResult in interface ResultHandler<Object>@Autowired public void setResultHandlers(Set<ResultHandler<?>> resultHandlers)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.