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:
mdb
2008-08-01 12:48:46 +00:00
parent b821084d39
commit 5f88cdb856
@@ -25,14 +25,14 @@ package com.samskivert.util;
* passed directly, but allows for success to be handled in whatever way is
* desired by the chaining result listener.
*/
public abstract class ChainedResultListener<T>
public abstract class ChainedResultListener<T,TT>
implements ResultListener<T>
{
/**
* Creates a chained result listener that will pass failure through to the
* specified target.
*/
public ChainedResultListener (ResultListener<T> target)
public ChainedResultListener (ResultListener<TT> target)
{
_target = target;
}
@@ -43,5 +43,5 @@ public abstract class ChainedResultListener<T>
_target.requestFailed(cause);
}
protected ResultListener<T> _target;
protected ResultListener<TT> _target;
}