package com.saltedhashed.web;
import java.io.Serializable;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;
import org.springframework.web.context.WebApplicationContext;
import com.saltedhashed.model.User;
@Component
@Scope(value=WebApplicationContext.SCOPE_SESSION, proxyMode=ScopedProxyMode.TARGET_CLASS)
public class UserContext implements Serializable {
private static final long serialVersionUID = 6246196837412415424L;
private User user;
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
}