public class DefaultDevelopmentModeDetector extends Object implements DevelopmentModeDetector
DevelopmentModeDetector that reads the servlet context parameter
com.ocpsoft.pretty.DEVELOPMENT. Setting this parameter to true will enable the PrettyFaces
development mode. Setting it to false will disable it and prevent all other detectors from enabling it.| Constructor and Description |
|---|
DefaultDevelopmentModeDetector() |
| 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.