public class DefaultDispatchTarget<T> extends Object implements DispatchTarget<T>
| Constructor and Description |
|---|
DefaultDispatchTarget(Object pTargetObject,
String pMethodName)
Create a callback wrapper for the given object and method
|
| Modifier and Type | Method and Description |
|---|---|
void |
callback(Response<T> pResponse)
The callback method to be called.
|
boolean |
equals(Object pObject) |
int |
hashCode() |
String |
toString() |
public DefaultDispatchTarget(Object pTargetObject, String pMethodName) throws IllegalArgumentException
pTargetObject - the object to call backpMethodName - the method to callIllegalArgumentException - if pTargetObject/pMethodName have issuespublic void callback(Response<T> pResponse)
DispatchTargetcallback in interface DispatchTarget<T>pResponse - the response, passed to the callback.Copyright © 2022 Jürgen Zeller (privat). All rights reserved.