Input - handler input typeOutput - handler output typeHandler - handler type. must be a subclass of GenericRequestHandlerpublic class BaseHandlerAdapter<Input,Output,Handler extends GenericRequestHandler<Input,Output>> extends Object implements GenericHandlerAdapter<Input,Output>
GenericRequestHandler implementations.| Constructor and Description |
|---|
BaseHandlerAdapter(Class<Handler> handlerType)
Constructor for BaseHandlerAdapter.
|
| Modifier and Type | Method and Description |
|---|---|
Output |
execute(Input input,
Object handler)
Executes the request handler with the supplied input.
|
boolean |
supports(Object handler)
Returns true if the adapter supports the type of handler.
|
public boolean supports(Object handler)
supports in interface GenericHandlerAdapter<Input,Output>handler - request handlerpublic Output execute(Input input, Object handler)
execute in interface GenericHandlerAdapter<Input,Output>input - input to the request handler.handler - request handlerCopyright © 2023. All rights reserved.