1 28 29 package com.caucho.server.session; 30 31 import com.caucho.log.Log; 32 import com.caucho.util.L10N; 33 34 import javax.annotation.PostConstruct; 35 import javax.servlet.ServletException ; 36 import java.util.logging.Logger ; 37 38 41 public class SessionFactory { 42 static protected final Logger log = Log.open(SessionFactory.class); 43 static final L10N L = new L10N(SessionFactory.class); 44 45 private SessionManager _manager; 46 47 50 public void setSessionManager(SessionManager manager) 51 { 52 _manager = manager; 53 } 54 55 58 public SessionManager getSessionManager() 59 { 60 return _manager; 61 } 62 63 66 @PostConstruct 67 public void init() 68 throws ServletException 69 { 70 } 71 72 80 public SessionImpl create(String id, long creationTime) 81 throws ServletException 82 { 83 return new SessionImpl(_manager, id, creationTime); 84 } 85 } 86 87 88 89 | Popular Tags |