What i want to do is this (it may be an abomination):
I have a UserSession object which lives in the session context. I wrote a little util to make grabbing it easier:
UserSession sess = UserSessionUtil.getUserSession()
What id like to do is inject this property into my objects via spring. Is this possible? Is this retarded?
It’s not an abomination. 🙂 See Spring’s scopes for web apps which will allow you to inject the UserSession directly into your beans (without the static call).