@Override public void activate() { super.activate(); getBeanStore().attach(); }
public boolean associate(HttpServletRequest request) { // At this point the bean store should never be set - see also HttpContextLifecycle#nestedInvocationGuard BoundBeanStore beanStore = getBeanStore(); if (beanStore != null) { ContextLogger.LOG.beanStoreLeakDuringAssociation(this.getClass().getName(), request); if (ContextLogger.LOG.isDebugEnabled()) { ContextLogger.LOG.beanStoreLeakAffectedBeanIdentifiers(this.getClass().getName(), Iterables.toMultiRowString(beanStore)); } } // We always associate a new bean store to avoid possible leaks (security threats) beanStore = new RequestBeanStore(request, namingScheme); setBeanStore(beanStore); beanStore.attach(); return true; }
public boolean associate(Map<String, Object> storage) { if (getBeanStore() == null) { setBeanStore(new MapBeanStore(namingScheme, storage, true)); getBeanStore().attach(); return true; } else { return false; } }
protected void associateRequest(ManagedConversation conversation) { setRequestAttribute(getRequest(), CURRENT_CONVERSATION_ATTRIBUTE_NAME, conversation); NamingScheme namingScheme = new ConversationNamingScheme(getNamingSchemePrefix(), conversation.getId(), beanIdentifierIndex); setBeanStore(createRequestBeanStore(namingScheme, getRequest())); getBeanStore().attach(); }
setActive(active); if (beanStore != null) { beanStore.attach(); } else if (!active) { removeState();
protected void destroyConversation(S session, String id) { if (session != null) { setBeanStore(createSessionBeanStore(new ConversationNamingScheme(getNamingSchemePrefix(), id, beanIdentifierIndex), session)); getBeanStore().attach(); destroy(); getBeanStore().detach(); setBeanStore(null); conversationDestroyedEvent.get().fire(id); } }
.getId()); getBeanStore().attach(); getConversationMap().put(getCurrentConversation().getId(), getCurrentConversation());