@Override protected Object getAttribute(String prefixedId) { HttpSession session = getSession(false); if (session != null) { return session.getAttribute(prefixedId); } return null; }
@Override protected HttpSession getSession(boolean create) { try { return SessionHolder.getSession(request, create); } catch (IllegalStateException e) { // If container can't create an underlying session, invalidate the // current one detach(); return null; } }
public EagerSessionBeanStore(NamingScheme namingScheme, HttpSession session, ServiceRegistry serviceRegistry) { super(namingScheme, false, serviceRegistry); this.session = session; ContextLogger.LOG.loadingBeanStoreMapFromSession(this, getSession(false)); }
@Override protected BoundBeanStore createSessionBeanStore(NamingScheme namingScheme, HttpSession session) { return new EagerSessionBeanStore(namingScheme, session, getServiceRegistry()); }
/** * * @param request * @param namingScheme * @param attributeLazyFetchingEnabled */ public LazySessionBeanStore(HttpServletRequest request, NamingScheme namingScheme, boolean attributeLazyFetchingEnabled, ServiceRegistry serviceRegistry) { super(namingScheme, attributeLazyFetchingEnabled, serviceRegistry); this.request = request; ContextLogger.LOG.loadingBeanStoreMapFromSession(this, getSession(false)); }
@Override protected BoundBeanStore createRequestBeanStore(NamingScheme namingScheme, HttpServletRequest request) { return new LazySessionBeanStore(request, namingScheme, false, getServiceRegistry()); }
@Override protected BoundBeanStore createSessionBeanStore(NamingScheme namingScheme, HttpSession session) { return new EagerSessionBeanStore(namingScheme, session, getServiceRegistry()); }
@Override protected HttpSession getSession(boolean create) { try { return SessionHolder.getSession(request, create); } catch (IllegalStateException e) { // If container can't create an underlying session, invalidate the // current one detach(); return null; } }
public EagerSessionBeanStore(NamingScheme namingScheme, HttpSession session, ServiceRegistry serviceRegistry) { super(namingScheme, false, serviceRegistry); this.session = session; ContextLogger.LOG.loadingBeanStoreMapFromSession(this, getSession(false)); }
/** * * @param request * @param namingScheme * @param attributeLazyFetchingEnabled */ public LazySessionBeanStore(HttpServletRequest request, NamingScheme namingScheme, boolean attributeLazyFetchingEnabled, ServiceRegistry serviceRegistry) { super(namingScheme, attributeLazyFetchingEnabled, serviceRegistry); this.request = request; ContextLogger.LOG.loadingBeanStoreMapFromSession(this, getSession(false)); }
@Override protected Object getAttribute(String prefixedId) { HttpSession session = getSession(false); if (session != null) { return session.getAttribute(prefixedId); } return null; }
@Override protected BoundBeanStore createRequestBeanStore(NamingScheme namingScheme, HttpServletRequest request) { return new LazySessionBeanStore(request, namingScheme, false, getServiceRegistry()); }
@Override protected BoundBeanStore createSessionBeanStore(NamingScheme namingScheme, HttpSession session) { return new EagerSessionBeanStore(namingScheme, session, getServiceRegistry()); }
@Override protected HttpSession getSession(boolean create) { try { return SessionHolder.getSession(request, create); } catch (IllegalStateException e) { // If container can't create an underlying session, invalidate the // current one detach(); return null; } }
public EagerSessionBeanStore(NamingScheme namingScheme, HttpSession session, ServiceRegistry serviceRegistry) { super(namingScheme, false, serviceRegistry); this.session = session; ContextLogger.LOG.loadingBeanStoreMapFromSession(this, getSession(false)); }
/** * * @param request * @param namingScheme * @param attributeLazyFetchingEnabled */ public LazySessionBeanStore(HttpServletRequest request, NamingScheme namingScheme, boolean attributeLazyFetchingEnabled, ServiceRegistry serviceRegistry) { super(namingScheme, attributeLazyFetchingEnabled, serviceRegistry); this.request = request; ContextLogger.LOG.loadingBeanStoreMapFromSession(this, getSession(false)); }
@Override protected Object getAttribute(String prefixedId) { HttpSession session = getSession(false); if (session != null) { return session.getAttribute(prefixedId); } return null; }
@Override public boolean associate(HttpSession session) { if (getBeanStore() == null) { // Don't reassociate setBeanStore(new EagerSessionBeanStore(namingScheme, session, getServiceRegistry())); return true; } else { return false; } }
@Override public boolean associate(HttpSession session) { if (getBeanStore() == null) { // Don't reassociate setBeanStore(new EagerSessionBeanStore(namingScheme, session, getServiceRegistry())); return true; } else { return false; } }
@Override public boolean associate(HttpSession session) { if (getBeanStore() == null) { // Don't reassociate setBeanStore(new EagerSessionBeanStore(namingScheme, session, getServiceRegistry())); return true; } else { return false; } }