Package org.jboss.seam.init

Examples of org.jboss.seam.init.Initialization$EventListenerDescriptor


   public void testConstraints() throws Exception
   {
      // Initialize Seam
      MockServletContext servletContext = new MockServletContext();
      ServletLifecycle.beginApplication(servletContext);
      new Initialization(servletContext).create().init();

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


   */
  @BeforeSuite
  public void triggerComponentScan()
  {
      Lifecycle.beginApplication(new HashMap<String, Object>());
      new Initialization(new MockServletContext()).create().init();
      Lifecycle.endApplication();
  }
View Full Code Here

   @Test
   public void testInitialization()
   {
      MockServletContext servletContext = new MockServletContext();
      ServletLifecycle.beginApplication(servletContext);
      new Initialization(servletContext).create().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

   @Test
   public void testEnumPropertyAssignment()
   {
       MockServletContext servletContext = new MockServletContext();
       ServletLifecycle.beginApplication(servletContext);
       new Initialization( servletContext ).create().init();

       Lifecycle.beginCall();

       ConfigurableComponent component = (ConfigurableComponent) Component.getInstance(ConfigurableComponent.class);
       assert component != null;
View Full Code Here

   @Test
   public void testEntityHomeConfiguration()
   {
      MockServletContext servletContext = new MockServletContext();
      ServletLifecycle.beginApplication(servletContext);
      new Initialization( servletContext ).create().init();
      Lifecycle.beginCall();
      Contexts.getEventContext().set(Seam.getComponentName(Transaction.class), new NoTransaction());
      MyEntityHome myEntityHome = (MyEntityHome) Component.getInstance("myEntityHome");
      assert myEntityHome != null;
      // verify that the reference to new-instance remains unparsed
View Full Code Here

{
   @BeforeMethod
   protected void setUp()
   {
      Lifecycle.beginApplication(new HashMap<String, Object>());
      new Initialization(new MockServletContext()).create().init();
      Lifecycle.setupApplication();
      installComponent(Contexts.getApplicationContext(), Actor.class);
      installComponent(Contexts.getApplicationContext(), PooledTaskInstanceList.class);
      installComponent(Contexts.getApplicationContext(), MockRolledBackTransaction.class);
      Lifecycle.beginCall();
View Full Code Here

   {
      startJbossEmbeddedIfNecessary();
      this.servletContext = createServletContext();
      ServletLifecycle.beginApplication(servletContext);
      FactoryFinder.setFactory(FactoryFinder.APPLICATION_FACTORY, MockApplicationFactory.class.getName());
      new Initialization(servletContext).create().init();
      ((Init) servletContext.getAttribute(Seam.getComponentName(Init.class))).setDebug(false);
   }
View Full Code Here

  
   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

   {
      startJbossEmbeddedIfNecessary();
      this.servletContext = createServletContext();
      ServletLifecycle.beginApplication(servletContext);
      FactoryFinder.setFactory(FactoryFinder.APPLICATION_FACTORY, MockApplicationFactory.class.getName());
      new Initialization(servletContext).create().init();
      ((Init) servletContext.getAttribute(Seam.getComponentName(Init.class))).setDebug(false);
   }
View Full Code Here

         }
      }
      ServletContext context = super.newServletContext(path);
      startJbossEmbeddedIfNecessary();
      ServletLifecycle.beginApplication(context);
      new Initialization(context).create().init();
      ((Init) context.getAttribute(Seam.getComponentName(Init.class))).setDebug(false);
      return context;
   }
View Full Code Here

TOP

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

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.