public class GenericResultHandlerService extends Object implements ResultHandlerService
Constructor and Description |
---|
GenericResultHandlerService() |
Modifier and Type | Method and Description |
---|---|
<T> void |
addResultHandler(Class<T> resultType,
ResultHandler<? super T> resultHandler)
Add a plain result handler to this registry.
|
void |
addResultHandler(GenericResultHandler handler)
Add a generic result handler this this registry.
|
void |
addResultHandler(ResultHandler<?> resultHandler)
Add a plain result handler to this registry.
|
void |
handle(Object source)
Handle result.
|
void |
handle(Object result,
org.springframework.core.convert.TypeDescriptor resultType)
Handle result to the specified
TypeDescriptor . |
public void handle(Object source)
ResultHandlerService
handle
in interface ResultHandlerService
source
- the resultpublic void handle(Object result, org.springframework.core.convert.TypeDescriptor resultType)
ResultHandlerService
TypeDescriptor
.handle
in interface ResultHandlerService
result
- the resultresultType
- the result typepublic void addResultHandler(ResultHandler<?> resultHandler)
resultHandler
- the result handlerpublic <T> void addResultHandler(Class<T> resultType, ResultHandler<? super T> resultHandler)
T
- the type of result handlerresultType
- the class of a result typeresultHandler
- the result handlerpublic void addResultHandler(GenericResultHandler handler)
handler
- the generic result handlerCopyright © 2024. All rights reserved.