Hey Jaga,
No problem, I just wasn't sure what you were referring to.
http://github.com/jdwyah/tocollege.net/blob/master/src/main/java/com/apress/progwt/server/service/impl/UserServiceImpl.java
Yeah, I guess the bit I don't like is changePassword() method, though
afaik this was how you're supposed to do it in Spring Security. I
guess to me it doesn't feel like updating the user cache should be a
concern of the password change service. Just a general thing, but I
would prefer to have caches expire in a more general manner eg in
Rails I'd probably add after_save to the User model which cleared the
cache.
I don't think there's anything you need to be worried about, I just
felt like there should be a better place for that code. And you'll
need to remember that if you have other methods that modify the cached
user you'll need to clear the cache there too. Not a huge deal.
-Jeff