Re: ajax and rundata disposal
Christian Kaiser <[email protected]> Mon, 07 Dec 2009 10:55:19 +0100
| Newsgroups | gmane.comp.jakarta.turbine.user |
|---|---|
| Message-ID | <1260179719.2735.16.camel@kaiser00c-desktop> |
>
> It sounds as if one of the tools you are are accessing is not
> re-entrant, meaning that internally it is storing a temporary reference
> to RunData
Yes, I think this is re-entrant.
So this might be the source of my problems.
class ATool
public void init(Object data) {
if (data instanceof RunData)
this.data = (RunData) data;
}
public void refresh(RunData data) {
this.data = data;
}
public Model get(String modelName) {
ModelService modelService = TurbineModel.getService();
return modelService.getModel(modelName,data);
}
---------------------------------------------------------------------------------------
I guess I am supposed to use the tool that way.
public Model get(String modelName, presentData) {
ModelService modelService = TurbineModel.getService();
return modelService.getModel(modelName,presentData);
}
Can you confirm that?
christian