Package org.omnifaces
Class ApplicationInitializer
- java.lang.Object
-
- org.omnifaces.ApplicationInitializer
-
- All Implemented Interfaces:
ServletContainerInitializer
public class ApplicationInitializer extends Object implements ServletContainerInitializer
OmniFaces application initializer. This runs when the servlet container starts up. This performs the following tasks:
- Log OmniFaces version.
- Determine the default
FacesServletmapping. - Register
FacesViewsforwarding filter.
This is invoked before
ApplicationListenerandApplicationProcessor. If any exception is thrown, then the deployment will fail, unless the "org.omnifaces.SKIP_DEPLOYMENT_EXCEPTION" context parameter is set totrue, it will then merely log a WARNING line.- Since:
- 2.0
- Author:
- Bauke Scholtz
-
-
Constructor Summary
Constructors Constructor Description ApplicationInitializer()
-
-
-
Method Detail
-
onStartup
public void onStartup(Set<Class<?>> c, ServletContext servletContext) throws ServletException
- Specified by:
onStartupin interfaceServletContainerInitializer- Throws:
ServletException
-
-