Package br.gov.frameworkdemoiselle.context

Examples of br.gov.frameworkdemoiselle.context.SessionContext.deactivate()


      if (requestActivatedHere){
        tempRequestContext.deactivate();
      }
     
      if (sessionActivatedHere){
        tempSessionContext.deactivate();
      }
     
      if (viewActivatedHere){
        tempViewContext.deactivate();
      }
View Full Code Here


    if (!sessionContext.isActive()){
      logger.debug(bundle.getString("management-debug-stoping-custom-context",
          sessionContext.getClass().getCanonicalName(), managedType.getCanonicalName()));
     
      sessionContext.deactivate();
    }
   
    if (!conversationContext.isActive()){
      logger.debug(bundle.getString("management-debug-starting-custom-context",
          conversationContext.getClass().getCanonicalName(), managedType.getCanonicalName()));
View Full Code Here

  @After
  public void deactiveContext() {
    securityContext.logout();

    SessionContext ctx = Beans.getReference(SessionContext.class);
    ctx.deactivate();
  }
}
View Full Code Here

  @After
  public void deactiveContext() {
    securityContext.logout();
   
    SessionContext ctx = Beans.getReference(SessionContext.class);
    ctx.deactivate();
  }
}
View Full Code Here

      if (requestContext!=null && Boolean.TRUE.equals(startedContextHere.get("request"))){
        requestContext.deactivate();
      }
     
      if (sessionContext!=null && Boolean.TRUE.equals(startedContextHere.get("session"))){
        sessionContext.deactivate();
      }
     
      if (conversationContext!=null && Boolean.TRUE.equals(startedContextHere.get("conversation"))){
        conversationContext.deactivate();
      }
View Full Code Here

  }

  @After
  public void deactiveContext() {
    SessionContext ctx = Beans.getReference(SessionContext.class);
    ctx.deactivate();
  }
}
View Full Code Here

  @After
  public void deactiveContext() {
    securityContext.logout();
    SessionContext ctx = Beans.getReference(SessionContext.class);
    ctx.deactivate();
  }
}
View Full Code Here

  @After
  public void deactiveContext() {
    securityContext.logout();
    SessionContext ctx = Beans.getReference(SessionContext.class);
    ctx.deactivate();
  }
}
View Full Code Here

  }

  @After
  public void deactiveContext() {
    SessionContext context = Beans.getReference(SessionContext.class);
    context.deactivate();
  }
 
  @Test
  public void createTwoCachedPagination(){
    paginationOne = paginationContext.getPagination(DummyEntity.class, true);
View Full Code Here

  }

  @After
  public void deactiveContext() {
    SessionContext context = Beans.getReference(SessionContext.class);
    context.deactivate();
  }

  @Test
  public void defaultPaginationContext() {
    assertEquals(pagination.getPageSize(), paginationConfig.getPageSize());
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.