somoso / vaadin-appfoundation

Automatically exported from code.google.com/p/vaadin-appfoundation
0 stars 0 forks source link

Improve the extending of the User class #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There needs to be a better way to extend the User class, so that any extensions 
of the class would be better supported by AuthenticationUtil, UserUtil and 
SessionHandler. For example, now if you extend the User class to YourUser, you 
cannot use the UserUtil's registerUser method.

Original issue reported on code.google.com by kimp...@gmail.com on 8 Jan 2011 at 11:09

GoogleCodeExporter commented 9 years ago
This needs some careful designing, as I wouldn't want to break backwards 
compatibility (at least too badly). I'd like to keep the usage of the utility 
classes as static method calls and introduce generics, but I'm not 100% this 
can be achieved in a meaningful way. Maybe by using the thread local patter[1]

[1] http://devblog.mycorner.fi/55/threadlocal-pattern-with-vaadin/

Original comment by kimp...@gmail.com on 8 Jan 2011 at 11:15