34,25 → 34,6 |
|
public abstract void load(TransformateurJSONaModelData<D> reader, Object loadConfig, AsyncCallback<D> callback, String recherche); |
|
@SuppressWarnings("unchecked") |
public void rafraichir(Object nouvellesDonnees) { |
|
try { |
data = nouvellesDonnees; |
|
D d = null; |
if (reader != null) { |
d = reader.read(loadConfig, data); |
} else { |
d = (D) data; |
if (d instanceof List) { |
d = (D) new ArrayList((List) d); |
} |
} |
callback.onSuccess(d); |
} catch (Exception e) { |
callback.onFailure(e); |
} |
} |
public abstract void rafraichir(Object nouvellesDonnees); |
|
} |