org.jboss.seam.faces.config
Class FacesServletInitializer

java.lang.Object
  extended by org.jboss.seam.faces.config.FacesServletInitializer
All Implemented Interfaces:
javax.servlet.ServletContainerInitializer

public class FacesServletInitializer
extends Object
implements javax.servlet.ServletContainerInitializer

Automatically registers the JSF FacesServlet if it's not already configured by the application (WEB-INF/web.xml). Only activates in a Servlet 3.0 environment. Most Java EE 6 application servers will register FacesServlet automatically, but in some cases require certain resources to be present in the application (i.e., a JSF component class or WEB-INF/faces-config.xml). Since the application is using Seam Faces, we assume intent to use JSF.

Author:
Dan Allen

Constructor Summary
FacesServletInitializer()
           
 
Method Summary
 void onStartup(Set<Class<?>> c, javax.servlet.ServletContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesServletInitializer

public FacesServletInitializer()
Method Detail

onStartup

public void onStartup(Set<Class<?>> c,
                      javax.servlet.ServletContext ctx)
               throws javax.servlet.ServletException
Specified by:
onStartup in interface javax.servlet.ServletContainerInitializer
Throws:
javax.servlet.ServletException


Copyright © 2011 Seam Framework. All Rights Reserved.