View Full Version : BaseTreeLoader and BaseListLoader not extending the same class

1 Apr 2011, 1:51 AM
I have un very big problem with BaseTreeLoader and BaseListLoader.
because they both extend BaseLoader but not with the same parameter.

public class BaseTreeLoader<M extends ModelData> extends BaseLoader<List<M>> implements TreeLoader<M>

public class BaseListLoader<D extends ListLoadResult<?>> extends BaseLoader<D> implements

the first one extend baseLoader with a parameter extendeing ListLoadResult
and the second one extend baseLoader with a parameter extending List

fow now, we must use a différent reader for tree or non tree
why don't extending the same class ?
for my project i have to make mi own reader but it can't work in all case because of that