public class JSF2DevelopmentModeDetector extends Object implements DevelopmentModeDetector
DevelopmentModeDetector that checks for the JSF project stage the application runs in. If
the project stage isn't set to Production, the PrettyFaces development mode will be enabled.| Constructor and Description |
|---|
JSF2DevelopmentModeDetector() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPriority()
Detectors with a higher priority value will run after detectors with a lower priority value.
|
Boolean |
isDevelopmentMode(ServletContext servletContext)
This method must return
true if it wants PrettyFaces to run in development mode. |
public int getPriority()
DevelopmentModeDetectorgetPriority in interface DevelopmentModeDetectorpublic Boolean isDevelopmentMode(ServletContext servletContext)
DevelopmentModeDetectortrue if it wants PrettyFaces to run in development mode. It must return
false if it doesn't want PrettyFaces to run in development mode. If the method doesn't want to have
any infuence on the development mode detection, it should return null.isDevelopmentMode in interface DevelopmentModeDetectorservletContext - The ServletContextCopyright © 2014 OCPsoft. All Rights Reserved.