Examples of dissociate()


Examples of org.gatein.cdi.contexts.PortletRedisplayedContext.dissociate()

    @Override
    public void sessionDestroyed(HttpSessionEvent event) {
        PortletRedisplayedContext context = getExtension().getContext(PortletRedisplayedContext.class);
        if (context != null) {
            context.dissociate(event.getSession());
        }
    }

    protected abstract CDIPortletContextExtension getExtension();
}
View Full Code Here

Examples of org.jboss.weld.context.bound.BoundConversationContext.dissociate()

                        .resolve(manager.getBeans(BoundConversationContext.class, BoundLiteral.INSTANCE));
                ctx = manager.createCreationalContext(conversationContextBean);
                final BoundConversationContext conversationContext = (BoundConversationContext) manager.getReference(
                        conversationContextBean, BoundConversationContext.class, ctx);
                conversationContext.deactivate();
                conversationContext.dissociate(boundRequests.get());
            }
        } catch (NamingException e) {
            log.error("Failed to tear down Weld contexts", e);
        } finally {
            sessionContexts.remove();
View Full Code Here

Examples of org.jboss.weld.context.bound.BoundConversationContext.dissociate()

                        .resolve(manager.getBeans(BoundConversationContext.class, BoundLiteral.INSTANCE));
                ctx = manager.createCreationalContext(conversationContextBean);
                final BoundConversationContext conversationContext = (BoundConversationContext) manager.getReference(
                        conversationContextBean, BoundConversationContext.class, ctx);
                conversationContext.deactivate();
                conversationContext.dissociate(boundRequests.get());
            }
        } catch (NamingException e) {
            WeldLogger.ROOT_LOGGER.failedToTearDownWeldContexts(e);
        } finally {
            sessionContexts.remove();
View Full Code Here

Examples of org.jboss.weld.context.bound.BoundConversationContext.dissociate()

                ctx = manager.createCreationalContext(conversationContextBean);
                final BoundConversationContext conversationContext = (BoundConversationContext) manager.getReference(
                        conversationContextBean, BoundConversationContext.class, ctx);
                conversationContext.invalidate();
                conversationContext.deactivate();
                conversationContext.dissociate(boundRequests.get());
            }
        } catch (NamingException e) {
            WeldLogger.ROOT_LOGGER.failedToTearDownWeldContexts(e);
        } finally {
            sessionContexts.remove();
View Full Code Here

Examples of org.jboss.weld.context.bound.BoundConversationContext.dissociate()

        // Simulate ending the request (from the POV of the conversation only!)
        assert !conversation1.isTransient();
        String cid = conversation1.getId();
        conversationContext1.invalidate();
        conversationContext1.deactivate();
        conversationContext1.dissociate(request1);

        // and start another, propagating the conversation
        request1 = new BoundRequestImpl(container1.getSessionStore());
        conversationContext1.associate(request1);
        conversationContext1.activate(cid);
View Full Code Here

Examples of org.jboss.weld.context.bound.BoundConversationContext.dissociate()

         conversationContext.invalidate();
         conversationContext.deactivate();
      }
      finally
      {
         conversationContext.dissociate(request);
      }
   }
}
View Full Code Here

Examples of org.jboss.weld.context.bound.BoundConversationContext.dissociate()

                        .resolve(manager.getBeans(BoundConversationContext.class, BoundLiteral.INSTANCE));
                ctx = manager.createCreationalContext(conversationContextBean);
                final BoundConversationContext conversationContext = (BoundConversationContext) manager.getReference(
                        conversationContextBean, BoundConversationContext.class, ctx);
                conversationContext.deactivate();
                conversationContext.dissociate(boundRequests.get());
            }
        } catch (NamingException e) {
            log.error("Failed to tear down Weld contexts", e);
        } finally {
            sessionContexts.remove();
View Full Code Here

Examples of org.jboss.weld.context.bound.BoundConversationContext.dissociate()

         conversationContext.invalidate();
         conversationContext.deactivate();
      }
      finally
      {
         conversationContext.dissociate(request);
      }
   }
}
View Full Code Here

Examples of org.jboss.weld.context.bound.BoundConversationContext.dissociate()

                ctx = manager.createCreationalContext(conversationContextBean);
                final BoundConversationContext conversationContext = (BoundConversationContext) manager.getReference(
                        conversationContextBean, BoundConversationContext.class, ctx);
                conversationContext.invalidate();
                conversationContext.deactivate();
                conversationContext.dissociate(boundRequests.get());
            }
        } catch (NamingException e) {
            WeldLogger.ROOT_LOGGER.failedToTearDownWeldContexts(e);
        } finally {
            sessionContexts.remove();
View Full Code Here

Examples of org.jboss.weld.context.bound.BoundConversationContext.dissociate()

         conversationContext.invalidate();
         conversationContext.deactivate();
      }
      finally
      {
         conversationContext.dissociate(request);
      }
   }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.