Package br.gov.frameworkdemoiselle.context

Examples of br.gov.frameworkdemoiselle.context.ConversationContext.activate()


     
      if (!tempViewContext.isActive())
        tempViewContext.activate();
     
      if (!tempConversationContext.isActive())
        tempConversationContext.activate();

      registered = true;
    }

    for (Iterator<AnnotatedMethodProcessor> iter = processors.iterator(); iter.hasNext();) {
View Full Code Here


   
    if (!conversationContext.isActive()){
      logger.debug(bundle.getString("management-debug-starting-custom-context",
          conversationContext.getClass().getCanonicalName(), managedType.getCanonicalName()));
     
      conversationContext.activate();
    }
  }

  private void deactivateContexts(Class<?> managedType) {
    RequestContext requestContext = Beans.getReference(RequestContext.class);
View Full Code Here

   
    if (!conversationContext.isActive()){
      logger.debug(bundle.getString("management-debug-starting-custom-context",
          conversationContext.getClass().getCanonicalName(), managedType.getCanonicalName()));
     
      conversationContext.activate();
    }
  }

  public void shutdown(Collection<Class<? extends ManagementExtension>> monitoringExtensions) {
    for (Class<? extends ManagementExtension> monitoringExtensionClass : monitoringExtensions) {
View Full Code Here

   
    if (!conversationContext.isActive()){
      logger.debug(bundle.getString("management-debug-starting-custom-context",
          conversationContext.getClass().getCanonicalName(), managedType.getCanonicalName()));
     
      conversationContext.activate();
    }
  }

  private void deactivateContexts(Class<?> managedType) {
    RequestContext requestContext = Beans.getReference(RequestContext.class);
View Full Code Here

        startedContextHere.put("session", sessionContext.activate());
      }
     
     
      if (conversationContext!=null){
        startedContextHere.put("conversation", conversationContext.activate());
      }
     
      //Contexto temporário de visão precisa de tratamento especial
      //para evitar conflito com o contexto presente na extensão demoiselle-jsf
      if (viewContext!=null){
View Full Code Here

  public void checkSeparatedStores(){
   
    ConversationContext conversationContext = Beans.getReference(ConversationContext.class);
    SessionContext sessionContext = Beans.getReference(SessionContext.class);
   
    conversationContext.activate();
    sessionContext.activate();
   
    ConversationBean conversationBean = Beans.getReference(ConversationBean.class);
    conversationBean.getData();
   
View Full Code Here

    ConversationContext conversationContext = Beans.getReference(ConversationContext.class);
   
    requestContext.activate();
    sessionContext.activate();
    viewContext.activate();
    conversationContext.activate();
  }

  public void removeContexts(@Observes AfterShutdownProccess event) {
    RequestContext requestContext = Beans.getReference(RequestContext.class);
    SessionContext sessionContext = Beans.getReference(SessionContext.class);
View Full Code Here

    ConversationContext conversationContext = Beans.getReference(ConversationContext.class);
   
    requestContext.deactivate();
    sessionContext.deactivate();
    viewContext.deactivate();
    conversationContext.activate();
  }
}
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.