The target result listener is not necessarily of the same type as the chaining
listener. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2352 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -25,14 +25,14 @@ package com.samskivert.util;
|
|||||||
* passed directly, but allows for success to be handled in whatever way is
|
* passed directly, but allows for success to be handled in whatever way is
|
||||||
* desired by the chaining result listener.
|
* desired by the chaining result listener.
|
||||||
*/
|
*/
|
||||||
public abstract class ChainedResultListener<T>
|
public abstract class ChainedResultListener<T,TT>
|
||||||
implements ResultListener<T>
|
implements ResultListener<T>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Creates a chained result listener that will pass failure through to the
|
* Creates a chained result listener that will pass failure through to the
|
||||||
* specified target.
|
* specified target.
|
||||||
*/
|
*/
|
||||||
public ChainedResultListener (ResultListener<T> target)
|
public ChainedResultListener (ResultListener<TT> target)
|
||||||
{
|
{
|
||||||
_target = target;
|
_target = target;
|
||||||
}
|
}
|
||||||
@@ -43,5 +43,5 @@ public abstract class ChainedResultListener<T>
|
|||||||
_target.requestFailed(cause);
|
_target.requestFailed(cause);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected ResultListener<T> _target;
|
protected ResultListener<TT> _target;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user