Examples of Initialization


Examples of org.jboss.seam.init.Initialization

  
   public void contextInitialized(ServletContextEvent event)
   {
      log.info( "Welcome to Seam " + Seam.getVersion() );
      ServletLifecycle.beginApplication( event.getServletContext() );
      new Initialization( event.getServletContext() ).create().init();
   }
View Full Code Here

Examples of org.jboss.seam.init.Initialization

      phases = new SeamPhaseListener();

      servletContext = new MockServletContext();
      initServletContext( servletContext.getInitParameters() );
      ServletLifecycle.beginApplication(servletContext);
      new Initialization(servletContext).create().init();
      ( (Init) servletContext.getAttribute( Seam.getComponentName(Init.class) ) ).setDebug(false);
      conversationViewRootAttributes = new HashMap<String, Map>();
      seamFilter = createSeamFilter();

      for (ELResolver elResolver : getELResolvers())
View Full Code Here

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

Examples of org.jboss.seam.init.Initialization

   {
      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

Examples of org.jboss.seam.init.Initialization

{
   @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

Examples of org.jboss.seam.init.Initialization

   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

Examples of org.jboss.seam.init.Initialization

      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

Examples of org.jboss.seam.init.Initialization

   @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

Examples of org.jboss.seam.init.Initialization

        } 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

Examples of org.tei.comparator.web.client.Initialization

   
    // load properties
    PropertiesProvider properties = PropertiesProvider.getInstance();
   
    // build init object
    Initialization init = new Initialization();
   
    // file names
    init.setFile1Name(properties.getNameForInputFile1());
    init.setFile2Name(properties.getNameForInputFile2());
   
    // page images
    init.setDisplayPageImages(properties.isDisplayPageImages());
    init.setPageImageUrlFile1(properties.getPageImagesFile1Url());
    init.setPageImageUrlFile2(properties.getPageImagesFile2Url());
    init.setPageImagePreviewUrlFile1(properties.getPageImagesFile1PreviewUrl());
    init.setPageImagePreviewUrlFile2(properties.getPageImagesFile2PreviewUrl());
   
    return init;
  }
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.