Package org.jboss.seam.init

Examples of org.jboss.seam.init.Initialization


         for ( File file: init.getHotDeployPaths() )
         {
            if ( scan(request, init, file) )
            {
               Seam.clearComponentNameCache();
               new Initialization( getServletContext() ).redeploy( (HttpServletRequest) request );
               break;
            }
         }
      }
     
View Full Code Here


   {
      startJbossEmbeddedIfNecessary();
      servletContext = new MockServletContext();
      initServletContext(servletContext.getInitParameters());
      ServletLifecycle.beginApplication(servletContext);
      new Initialization(servletContext).create().init();
      ((Init) servletContext.getAttribute(Seam.getComponentName(Init.class))).setDebug(false);
   }
View Full Code Here

{
   @Test
   public void testInitialization()
   {
      MockServletContext servletContext = new MockServletContext();
      new Initialization(servletContext).init();

      assert !servletContext.getAttributes().isEmpty();
      assert servletContext.getAttributes().containsKey( Seam.getComponentName(Manager.class) + ".component" );
      assert servletContext.getAttributes().containsKey( Seam.getComponentName(Foo.class) + ".component" );
      assert !Contexts.isApplicationContextActive();
View Full Code Here

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

   public void contextInitialized(ServletContextEvent event) {
      log.info("Welcome to Seam 1.2.1");
      Lifecycle.setServletContext( event.getServletContext() );
      new Initialization( event.getServletContext() ).create().init();
   }
View Full Code Here

      phases = createPhaseListener();
     
      servletContext = new MockServletContext();
      initServletContext( servletContext.getInitParameters() );
      Lifecycle.setServletContext(servletContext);
      new Initialization(servletContext).create().init();

      conversationViewRootAttributes = new HashMap<String, Map>();
   }
View Full Code Here

   @Test
   public void testConstraints() throws Exception
   {
      // Initialize Seam
      MockServletContext servletContext = new MockServletContext();
      new Initialization(servletContext).init();
      Lifecycle.setServletContext(servletContext);

      try
      {
         Lifecycle.beginCall();
View Full Code Here

        } catch (Exception e) {
            e.printStackTrace();
        }
        // redeploy the components
        try {
            Initialization init = new Initialization(ServletLifecycle.getServletContext());

            Method redeploy = Initialization.class.getDeclaredMethod("installScannedComponentAndRoles", Class.class);
            redeploy.setAccessible(true);
            for (int i = 0; i < changed.length; ++i) {
                redeploy.invoke(init, changed[i]);
View Full Code Here

TOP

Related Classes of org.jboss.seam.init.Initialization

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.