public abstract class DelegatingActionListener<Instigator extends ActionResponse,Delegated extends ActionResponse> extends Object implements ActionListener<Instigator>
Modifier | Constructor and Description |
---|---|
protected |
DelegatingActionListener(ActionListener<Delegated> listener) |
Modifier and Type | Method and Description |
---|---|
protected abstract Delegated |
getDelegatedFromInstigator(Instigator response) |
void |
onFailure(Throwable e)
A failure handler.
|
void |
onResponse(Instigator response)
A response handler.
|
protected DelegatingActionListener(ActionListener<Delegated> listener)
protected abstract Delegated getDelegatedFromInstigator(Instigator response)
public final void onResponse(Instigator response)
ActionListener
onResponse
in interface ActionListener<Instigator extends ActionResponse>
public final void onFailure(Throwable e)
ActionListener
onFailure
in interface ActionListener<Instigator extends ActionResponse>
Copyright © 2009–2016. All rights reserved.