Package org.jboss.seam.servlet

Examples of org.jboss.seam.servlet.ServletApplicationMap


   }

   public static void beginApplication(ServletContext context)
   {
      servletContext = context;
      Lifecycle.beginApplication( new ServletApplicationMap(context) );
   }
View Full Code Here


         public void init(FilterConfig filterConfig) throws ServletException
         {
            try
            {
               // We need the Application context active in order to lookup the WebApplication component
               Lifecycle.setupApplication(new ServletApplicationMap(filterConfig.getServletContext()));
               Map<String, String> parameters = new HashMap<String, String>();
               try
               {
                  ClassLoader parent = Thread.currentThread().getContextClassLoader();
                 
View Full Code Here

   private static final LogProvider log = Logging.getLogProvider(TestLifecycle.class);

   public static void beginTest(ServletContext context, Map<String, Object> session)
   {
      log.debug( ">>> Begin test" );
      Contexts.applicationContext.set( new ApplicationContext( new ServletApplicationMap(context) ) );
      Contexts.eventContext.set( new BasicContext(ScopeType.EVENT) );
      Contexts.conversationContext.set( new BasicContext(ScopeType.CONVERSATION) );
      Contexts.businessProcessContext.set( new BusinessProcessContext() );
      Contexts.sessionContext.set( new SessionContext(session) );
   }
View Full Code Here

      }
     
      log.debug( ">>> Begin web request" );
      Contexts.eventContext.set( new EventContext( new ServletRequestMap(request) ) );
      Contexts.sessionContext.set( new SessionContext( new ServletRequestSessionMap(request) ) );
      Contexts.applicationContext.set(new ApplicationContext( new ServletApplicationMap(ctx) ) );
      Contexts.conversationContext.set(null); //in case endRequest() was never called
   }
View Full Code Here

   }
  
   public static void beginReinitialization(HttpServletRequest request,ServletContext servletContext)
   {
      log.debug(">>> Begin re-initialization");
      Contexts.applicationContext.set( new ApplicationContext( new ServletApplicationMap(servletContext) ) );
      Contexts.eventContext.set( new BasicContext(ScopeType.EVENT) );
      Contexts.sessionContext.set( new SessionContext( new ServletRequestSessionMap(request) ) );
      Contexts.conversationContext.set( new BasicContext(ScopeType.CONVERSATION) );
   }
View Full Code Here

      WeakReference<ClassLoader> ref = new WeakReference<ClassLoader>(Thread.currentThread().getContextClassLoader());
      context.setAttribute("seam.context.classLoader",ref);
      log.debug("Cached the context classloader in servletContext as 'seam.context.classLoader'");
      context.setAttribute(SERVLET_CONTEXT_KEY, context);
      servletContext = context;
      Lifecycle.beginApplication( new ServletApplicationMap(context) );
   }
View Full Code Here

      endApplication(servletContext);
   }
  
   public static void endApplication(ServletContext context)
   {
      Lifecycle.endApplication(new ServletApplicationMap( context));
      servletContext=null;
   }
View Full Code Here

      servletContext=null;
   }
  
   public static void beginSession(HttpSession session)
   {
      Lifecycle.beginSession( new ServletSessionMap(session), new ServletApplicationMap(session.getServletContext()) );
   }
View Full Code Here

      Lifecycle.beginSession( new ServletSessionMap(session), new ServletApplicationMap(session.getServletContext()) );
   }
  
   public static void endSession(HttpSession session)
   {
      Lifecycle.endSession( new ServletSessionMap(session) , new ServletApplicationMap(session.getServletContext()));
   }
View Full Code Here

      }
     
      log.debug(">>> Begin web request");
      Contexts.eventContext.set(new EventContext(new ServletRequestMap(request)));
      Contexts.sessionContext.set(new SessionContext(new ServletRequestSessionMap(request)));
      Contexts.applicationContext.set(new ApplicationContext( new ServletApplicationMap(ctx) ));
      Contexts.conversationContext.set(null); // in case endRequest() was never called
   }
View Full Code Here

TOP

Related Classes of org.jboss.seam.servlet.ServletApplicationMap

Copyright © 2018 www.massapicom. 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.