org.jboss.seam.examples.booking.bootstrap
Class ApplicationInitializer

java.lang.Object
  extended by org.jboss.seam.examples.booking.bootstrap.ApplicationInitializer

@Alternative
public class ApplicationInitializer
extends Object

An alternative bean used to import seed data into the database when the application is being initialized.

Author:
Lincoln Baxter, III, Dan Allen

Constructor Summary
ApplicationInitializer()
           
 
Method Summary
 void importData(org.jboss.solder.servlet.WebApplication webapp)
          Import seed data when Seam Servlet fires an event notifying observers that the web application is being initialized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationInitializer

public ApplicationInitializer()
Method Detail

importData

public void importData(@Observes@Initialized
                       org.jboss.solder.servlet.WebApplication webapp)
Import seed data when Seam Servlet fires an event notifying observers that the web application is being initialized.



Copyright © 2011 Seam Framework. All Rights Reserved.