- 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
FacesServlet
mapping. - Register
FacesViews
forwarding filter.
This is invoked before
ApplicationListener
andApplicationProcessor
. 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:
onStartup
in interfaceServletContainerInitializer
- Throws:
ServletException
-
-