java.lang.Object
org.omnifaces.ApplicationInitializer
- All Implemented Interfaces:
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 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
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ApplicationInitializer
public ApplicationInitializer()
-
-
Method Details
-
onStartup
- Specified by:
onStartupin interfaceServletContainerInitializer- Throws:
ServletException
-