- 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:
- Check if
Application.getResourceHandler()
chain is unique, otherwise log and fail. - Register the
FacesViews
view handler. - Register the
MessagesKeywordResolver
.
This is invoked after
ApplicationInitializer
andApplicationListener
. 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:
- 3.1
- Author:
- Bauke Scholtz
-
-
Constructor Summary
Constructors Constructor Description ApplicationProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isListenerForSource(Object source)
void
processEvent(SystemEvent event)
-
-
-
Method Detail
-
isListenerForSource
public boolean isListenerForSource(Object source)
- Specified by:
isListenerForSource
in interfaceSystemEventListener
-
processEvent
public void processEvent(SystemEvent event)
- Specified by:
processEvent
in interfaceSystemEventListener
-
-