Community
Participate
Working Groups
Created attachment 192421 [details] First draft of IApplicationStore Having the work done to solve https://bugs.eclipse.org/bugs/show_bug.cgi?id=337787 Stefan Röck brought my attention to the fact that this is only a library internal solution. RWT does not provide an abstraction for application developers that want to store data in application scope. However RWT does this for session and request scope so it feels somewhat unbalanced to omit such an abstraction. Because of this I added an API called IApplicationStore that serves this purpose. The application store implementation basically wraps a Map as storage area and is fed by key-value attributes. As the application store works in application scope access to the map has been synchronized. The store itself is registered as an RWTContext singleton. I've attached a patch that contains a first draft of the solution. What do you think?
As I will start working on bug 342415 and bug 342419 and we agreed on the API, I took the freedom to commit the patch. Otherwise the sanity of the patch would be at risk. What is left to do is to provide method removeAttribute() on ISessionStore and IServiceStore (see bug 342420) Changes are in CVS HEAD