Package org.omnifaces

Class ApplicationProcessor

java.lang.Object
org.omnifaces.ApplicationProcessor
All Implemented Interfaces:
FacesListener, SystemEventListener, EventListener

public class ApplicationProcessor extends Object implements SystemEventListener

OmniFaces application processor. This runs when the faces application is created. This performs the following tasks:

  1. Check if Application.getResourceHandler() chain is unique, otherwise log and fail.
  2. Register the FacesViews view handler.
  3. Register the MessagesKeywordResolver.

This is invoked after ApplicationInitializer and ApplicationListener. 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:
3.1
Author:
Bauke Scholtz