Search in sources :

Example 1 with AbstractConversationContext

use of org.jboss.weld.contexts.AbstractConversationContext in project core by weld.

the class ConversationContextActivator method sessionCreated.

public void sessionCreated(HttpSession session) {
    HttpConversationContext httpConversationContext = httpConversationContext();
    if (httpConversationContext instanceof AbstractConversationContext) {
        AbstractConversationContext<?, ?> abstractConversationContext = (AbstractConversationContext<?, ?>) httpConversationContext;
        abstractConversationContext.sessionCreated();
    }
}
Also used : AbstractConversationContext(org.jboss.weld.contexts.AbstractConversationContext) HttpConversationContext(org.jboss.weld.context.http.HttpConversationContext)

Example 2 with AbstractConversationContext

use of org.jboss.weld.contexts.AbstractConversationContext in project core by weld.

the class ConversationImpl method notifyConversationContext.

private void notifyConversationContext() {
    ConversationContext context = getActiveConversationContext();
    if (context instanceof AbstractConversationContext) {
        AbstractConversationContext<?, ?> abstractConversationContext = (AbstractConversationContext<?, ?>) context;
        abstractConversationContext.conversationPromotedToLongRunning(this);
    }
}
Also used : AbstractConversationContext(org.jboss.weld.contexts.AbstractConversationContext) ConversationContext(org.jboss.weld.context.ConversationContext) AbstractConversationContext(org.jboss.weld.contexts.AbstractConversationContext)

Aggregations

AbstractConversationContext (org.jboss.weld.contexts.AbstractConversationContext)2 ConversationContext (org.jboss.weld.context.ConversationContext)1 HttpConversationContext (org.jboss.weld.context.http.HttpConversationContext)1