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:

  1. Log OmniFaces version.
  2. Determine the default FacesServlet mapping.
  3. Register FacesViews forwarding filter.

This is invoked before ApplicationListener and ApplicationProcessor. If any exception is thrown, then the deployment will fail, unless the "org.omnifaces.SKIP_DEPLOYMENT_EXCEPTION" context parameter is set to true, it will then merely log a WARNING line.

Since:
2.0
Author:
Bauke Scholtz